[pLog-svn] umlauts / utf8 / moblog plugin

Oscar Renalias oscar at renalias.net
Thu Feb 2 06:41:03 GMT 2006


This is a bit tricky, because we need to convert from the encoding
that the message is using to the encoding that we're using in the
blog. So if the message is encoded with utf-8 and the destination blog
uses big5 for chinese characters, we should perform such conversion.
It's not enough to just call utf8_decode, because the destination
encoding of the blog could be whatever...

Oscar

On 2/2/06, Jon Daley <plogworld at jon.limedaley.com> wrote:
>
> Starting to delve into the world of UTF8, of which I know nothing about.
>
> See this blog, where the posts have all been made by moblog.
>
> http://devel.limedaley.com/1.0.3/index.php?blogId=1
>
> The way I fixed the body of the most recent post is by calling utf8_decode in
> _decodeBody() in the mime class of the moblog plugin.  I assume I can't call
> utf8_decode all the time, but have to decide whether or not the text is in utf8
> format, and then decode it as appropriate?
>
> I will look into it further, but you guys know more about this sort of stuff
> than I do.
>
>
> **************************************
> Jon Daley
> http://jon.limedaley.com/
>
> A nuclear war can ruin your whole day.
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>


More information about the pLog-svn mailing list