Re: japanese, unicode and python
"Martin v. Löwis" <[email protected]> Sun, 12 Feb 2006 20:38:47 +0100
| Newsgroups | gmane.comp.python.internationalization |
|---|---|
| Message-ID | <[email protected]> |
Zachary Mason wrote:
> Hi. Im writing an NLP application that manipulates japanese
> characters and downloads japanese web-pages, in particular results
> pages for japanese search engines. Having a miserable time trying to
> make it work so far. I have python 2.4.3, but the transformations
> that seem to work for european languages throw errors for japan.
> Pointers to useful resources or better yet examples of manipulating
> japanese via python would be greatly appreciated.
This is a pretty unspecific question. What's wrong with doing stuff
like
py> u"Hello \u3068\u306f".encode("eucJP")
'Hello \xa4\xc8\xa4\xcf'
Regards,
Martin