Re: LibXML UTF8 - Input is not proper UTF-8, indicate encoding !
Next message: martin.mrazek_at_gmail.com: "Number::Format installation problem"
Date: Sun, 06 Mar 2005 00:53:48 -0800
Vlajko Knezic wrote:
> $mDocument->setEncoding("UTF8");
> my $mCGI = new CGI;
> my $mTest_text = $mCGI->param('test');;
This is the point, you need to encode $mTest_text into
UTF8 before doing anything with that string. You have
promised the XML library that you will be working with
UTF8, therefore it is up to you to ensure that everything
is UTF8 (not ISO8859-1).
Any further questions should be posted to comp.lang.perl.misc
and not this newsgroup (comp.lang.perl is defunct).
-Joe
Next message: martin.mrazek_at_gmail.com: "Number::Format installation problem"
Relevant Pages
- Re: more DBD::Oracle utf8 weirdness, and kludge that should not have worked, but did
... And what are the _client_ CHAR and NCHAR character sets? ... It's important to keep in mind that "validates as utf8" is ambiguous. ... If a sequence of bytes that does not have the SvUTF8 flag turned ... Latin1 character will produce garbage unless the string is all ASCII. ... (perl.dbi.users) - Re: Character semantics for filenames (was: win32 reading wide filenames (unicode))
... Now file name is stored in utf8 format. ... it doesn't make any difference whether the string is internally ... DO WITH CHARACTERS ABOVE "\xFF". ... encoding to perl strings by readdir and from perl strings to the OS ... (comp.lang.perl.misc) - Re: Multi language application
... the block below implies that you created your app as "Unicode app". ... Whether you choose UTF8 or UTF16 is really up to you but by default in a "Unicode app", you're likely to write less code with UTF16 strings. ... You can use::MultiByteToWideChar Win32 API to convert from UTF-8 to UTF-16, and pass the UTF-16 string to Windows controls. ... (microsoft.public.vc.mfc) - Re: CGI and UTF-8
... misbehaving XS module) is a bug in perl. ... discard the invalid ones as soon as possible. ... related to invalid utf8 in a SvUTF8 string, ... (comp.lang.perl.misc) - Re: How to clean an xml files from non-utf-8 chars?
... anything else that relies on the xml files being utf-8. ... module UTF8 ... # Converts the string representation of this class to a utf8 clean ... (comp.lang.ruby) |
|