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] ruby and python in Japan
- Date: Tue, 27 Feb 2007 21:42:45 +0900
- From: Darren Cook <darren@??>
- Subject: Re: [tlug] ruby and python in Japan
- References: <EHEKIFPPAHHMCHHGJIJOGEDCEGAA.jason@example.com> <45E374FB.50904@example.com> <45E38BB2.7010602@example.com> <45E38F83.6090701@example.com> <19dd68ba0702261827xdfc826fna9160247ce639cfc@example.com>
- User-agent: Thunderbird 1.5.0.9 (X11/20070102)
> Regarding python,... > Maybe this is obvious, but this is your responsibility as a programmer > to check your input (is it euc-jp, utf-8, utf-16 encoded string), turn > that into a unicode string for processing (decode) (including regular > expression and the like) and then when returning the result (to the > screen, printer, file, socket etc...) to encode the result in the > encoding expected by the API. Or, in PHP you could use mbstring.http_input to "auto", and mbstring.http_output to the desired encoding, and then forget about it. (Despite the name http_output works for non-web scripts as well; I don't know if http_input will convert stdin for you; I've never tried.) Darren
- References:
- RE: [tlug] ruby and python in Japan
- From: Jason Hall
- Re: [tlug] ruby and python in Japan
- From: Micheal E. Cooper
- Re: [tlug] ruby and python in Japan
- From: Brett Robson
- Re: [tlug] ruby and python in Japan
- From: Brett Robson
- Re: [tlug] ruby and python in Japan
- From: Guillaume Proux
Home | Main Index | Thread Index
- Prev by Date: [tlug] Re: About Japanese input systems
- Next by Date: [tlug] Tutorial on how to get MythTV to show Japanese text correctly
- Previous by thread: Re: [tlug] ruby and python in Japan
- Next by thread: Re: [tlug] ruby and python in Japan
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links