Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] utf form problems
- Date: Thu, 28 Feb 2008 03:34:24 +0900
- From: "David Shanahan" <david@example.com>
- Subject: Re: [tlug] utf form problems
- References: <47C3B7E0.9020906@sonic.net> <47C3BB7C.2000605@ldp.jp> <47C4491A.6010002@sonic.net> <47C49FF8.1090107@samsara.bebear.net> <47C4B08D.907@sonic.net>
So my script is setting the charset right for it's output.
And the index.html that my server sends is in just
text/html. Marty Pauley showed me how to test the
encode/decode and it looks like the input to the script is
ok. But something isn't right because I'm getting mojibake
back from the script. It feels like I'm closer.
Sounds like perl might be treating your string as bytes rather than a unicode string,
then muching them on output.
You should read the docs on the Encode module;
perldoc Encode
You may need to do
$string = decode("utf8", param("stuff"));
to tell perl the %E5%8A%A9 bytes from the form is actually utf8 string
also look at the docs on the -C option to the perl command (or the PERL_UNICODE environment variable)
perldoc perlrun
and finally this has more background on utf8/unicode support in perl
perldoc perlunicode
- Follow-Ups:
- Re: [tlug] utf form problems
- From: steven smith
- References:
- [tlug] utf form problems
- From: steven smith
- Re: [tlug] utf form problems
- From: Brett Robson
- Re: [tlug] utf form problems
- From: steven smith
- Re: [tlug] utf form problems
- From: Edward Middleton
- Re: [tlug] utf form problems
- From: steven smith
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] utf form problems
- Next by Date: Re: [tlug] utf form problems
- Previous by thread: Re: [tlug] utf form problems
- Next by thread: Re: [tlug] utf form problems
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links