You are not logged in Log in Join
You are here: Home » Members » mojix » MojiConv Product » MojiConv 0.1 released

Log in
Name

Password

 

MojiConv 0.1 released

MojiConv is Japanese Character coding converter based on JapaneseCodecs.

With JapaneseCodecs in Python of your Zope, we can write code for converting Japanese Character coding like this:

 to_txt = unicode(from_txt, 'euc-jp', 'replace').encode('utf-8', 'replace')

This product wraps this idiom and enables you to write like this:

 to_txt = mojiconv(from_txt)

Here mojiconv is MojiConv object that keeps from / to coding as its properties.

This makes your code short and clean (separate from implementation detail). You can use this from ZMI (as Zope object) and from python (as module function).

Try this!

MojiConv