Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] utf form problems -- solved sort of.



Marty Pauley wrote:
> Hello
...
>   $ perl -MURI::Escape -wle 'print uri_unescape "%E5%8A%A9";'
>   助
This was the key I needed to get rolling again.  Thanks
Marty and everyone else.

My test script seems to work if I take out all the utf flags
(ie: use utf8, use open ':utf8', use open ':std', -CO) but I
have other scripts on the same machine using the same perl
that give me warnings about trying to print a wide character
if I print try to print utf-8.  As I read the documents, I
should have STDOUT open using utf-8 and if there is utf-8
code in the file, I should also have a 'use utf8' in the
file, but in this case, doing either will cause problems.  I
don't like this...

I guess for now I'll keep going on this script and see where
I end up.  Hopefully I won't be back again tomorrow with the
same sad story...

Marty -- you said not to read STDIN directly and I
understand why (I think) but -- just how do you read STDIN
in a situation like this.

Thanks everyone for the help.  This has been -- um --
interesting.  At least now I know (sort of) what an entity
is and how to decode and check my input strings and what
they should look like.

I have perl mongers tonight and will ask around, but most of
us over here are pretty helpless when it comes to anything
beyond ascii.  I think I'm the only one in my group really
doing much with anything like this.

Steve S.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links