In an XPathScript file, I'm trying to fetch something from the database
that's in euc-jp, convert it to utf8, and then assign to $t->{pre}.

something like this:

  while( $sth->fetchrow_arrayref ) {
      $field = convert_euc2utf($field);

      $t->{pre} = "<foo><bar>$field</bar></foo>";
  }

This produced a pile of garbage (encoding is weird). What encoding does
XPathScript expect, then?

I did the following to no avail:

  1) remove all other processors in the pipeline
  2) try outputting raw euc-jp characters
  3) swap text converters (Jcode,Text::Iconv)

any ideas?

--d


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to