Skip to main content.
home | support | download

Back to List Archive

warning: Failed to convert internal UTF-8 to Latin-1

From: Jacob Friis Larsen <jfl(at)not-real.list.idg.dk>
Date: Wed Aug 11 2004 - 22:54:27 GMT
Well now I get "warning: Failed to convert internal UTF-8 to Latin-1".

I use Php and convert UTF8 to Latin-1, but that doesn't seem to be enough.
Should I also use htmlentities($text) which will convert all applicable 
characters to HTML entities?

Thanks,
Jacob


Bill Moseley wrote:
> On Wed, Aug 11, 2004 at 03:39:23AM -0700, Jacob Friis Larsen wrote:
> 
>>I get "error: internal error" several times from Swish-e when spidering 
>>via my own spider.php script.
> 
> 
> That's not a swish-e error message.  Can you provide more details?
> 
> 
>>Do I need to convert all applicable characters to HTML entities, or is 
>>there another solution?
> 
> 
> You have to escape HTML when needed.  If you are doing something like:
> 
>   $text = fetch_text_from_database();
> 
>   print "<title>$text</title>";
> 
> then you had better escape $text unless you know that $text is
> suppose to be HTML.
> 
Received on Wed Aug 11 15:54:39 2004