I have just upgraded to perl 5.8.0, It used to work ok in perl 5.6.1
Any ideas why the output of these lines should be different in XPathScript?
<%=findvalue('article/title'); %>
<% my $silly = findvalue('article/title'); print "$silly"; %>
The first line mangles all the utf-8 characters, the second line
produces the utf-8 characters ok - they display properly in my browser
and the output is utf-8. The source xml is definitely utf-8. This is
not a cache problem.
The mangled output appears to be an attempt at applying a ucs->utf-8
conversion on an already utf-8 encoded string.
The headers for the stylesheet look like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
... blah ...
Oh and a further twist - print "$silly<br/>"; produces mangled chars
I'm trying to find if I compiled a module wrongly - there was an option
at one stage to do with iso-8859-1 vs utf-8 but now i can't find it.
matt
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Re: xpathscript utf-8 character encoding problem Matthew Smith
- Re: xpathscript utf-8 character encoding problem Matt Sergeant
- Re: xpathscript utf-8 character encoding problem Matthew Smith
- Re: xpathscript utf-8 character encoding problem Matthew Smith
- Re: xpathscript utf-8 character encoding problem Matthew Smith
