[pLog-svn] umlauts / utf8 / moblog plugin

Jon Daley plogworld at jon.limedaley.com
Thu Feb 2 12:04:31 GMT 2006


 	So, is this where iconv comes in?  Somehow I need to get both the 
source and destination encoding?  I guess people could have one lifetype 
install serving multiple character sets(?) or is that not possible?

On Thu, 2 Feb 2006, Oscar Renalias wrote:
> 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.


More information about the pLog-svn mailing list