Re: charset transcoding question

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Wapme Systems AG
Message-ID <[email protected]>
Vjacheslav Chekushin wrote:
> 
> I have some questions about new transcoding feature, implemented in
> cvs tree. (see http://www.mail-archive.com/[email protected]/msg00196.html)
> 
> (In Kannel 1.3.1 all content, compiled by libxml2 was sent to phone in UTF-8)
> 
> Stipe Tolj wrote:
> ...
> defines the WML source to be in ISO-8859-1 encoding. Kannel did anyway
> tried this as UTF-8 and also set the WBXML flags as UTF-8. Hence you
> could *not* tell Kannel to encode the wml_compile() output in an other
> charset encoding then UTF-8.
> <skipped>
> The hack includes a transcoding of the text elements while libxml2
> does the parsing of the tree. libxml2 uses UTF-8 encoding as internal
> encoding. Hence we have to transcode to our targeted charset (ie.
> ISO-8859-1) at the point we inject the characters to the WBXML code.
> This should work now smoothly. Please test on your own and report if
> something has been broken by the changes.
> 
> Why do we need double work if every phone supports UTF-8?
> Why we can't simply send content in UTF-8?

AFAIR, not all phones do UTF-8. Some only handle ISO-Latin1.

> Or at least recode to original encoding only if device doesn't support
> UTF-8 encoding?

yep??? Please explain in more details. It's some time ago and you have
to recall it to me ;)

Stipe

[email protected]
-------------------------------------------------------------------
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [email protected]
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.