in reply to Re: Re: XML Simple Charset Q?
in thread XML Simple Charset Q?
Anyway, you can use the same light-weight trick to convert back. s/([\x{80}-\x{ff}])/pack('C',$1)/eg Compiled with utf8 in effect (note the curlies on the \x codes. This indicates UTF-8 encoded characters). Then use pack instead of chr so you can specify bytes (chr does too much DWIMary and the persuasion thing is not as transparant as one would hope when dealing with I/O, though I think it's behavior in 5.6 would work in this case).
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: XML Simple Charset Q?
by jkahn (Friar) on Nov 25, 2002 at 20:03 UTC | |
by John M. Dlugosz (Monsignor) on Nov 25, 2002 at 21:59 UTC |