Re: Question about converting utf8 to ascii and char refs

2004-10-27 Thread David Graff
[EMAIL PROTECTED] said: > I have a UTF-8 string which I want to output as ascii and have the UTF8 > characters converted to numeric character references. > > I tried using Encode with the FB_HTMLCREFS fail back option enabled, > but for the 2 byte UTF8 characters, 2 incorrect char refs were printe

Re: Question about converting utf8 to ascii and char refs

2004-10-27 Thread Nick Ing-Simmons
Aaron Siladi <[EMAIL PROTECTED]> writes: >I have a UTF-8 string which I want to output as ascii and have the UTF8 >characters converted to numeric character references. > > > >I tried using Encode with the FB_HTMLCREFS fail back option enabled, but for >the 2 byte UTF8 characters, 2 incorrect char

RE: Question about converting utf8 to ascii and char refs

2004-10-27 Thread Siladi, Aaron
Ok so that should work given the string has utf8 flag set. I guess the problem may be that my string doesn't have it set. I'm getting the string as output from XML::DOM::Document->toString, so I should investigate with that module why isn't setting the utf8 flag. Thanks Aaron -Origina