vovel with acute accent, problem

"Ivone Uribe" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi all!!

I have a problem ... my phone can't show correctly vowels with acute accent.

I can realize:

***************************************************************************************************************
case1: with <?xml version="1.0" encoding="utf-8"?>

*************************************************************************************************************
*my motorola phone  and up.sdk 4.1 simulator

	-int wml_compile(Octstr *wml_text,
		Octstr *charset,
		Octstr **wml_binary)

	wml_text have  &#243;
	for  <p>#243; -&#243;-</p>

	-wml_binary_output(*wml_binary, wbxml);
	wml_binary have /xc3/xb3
	for  <p>#243; -&#243;-</p>


	and the following headers:


my phone
	2003-03-05 09:18:32 [1] DEBUG: WSP: decoded headers:
	2003-03-05 09:18:32 [1] DEBUG: Accept: application/vnd.wap.wmlc; type=1108
	2003-03-05 09:18:32 [1] DEBUG: Accept: application/vnd.wap.wmlc
	2003-03-05 09:18:32 [1] DEBUG: Accept: application/vnd.wap.wmlscriptc
	2003-03-05 09:18:32 [1] DEBUG: User-Agent: MOT-87/00.03 UP.Browser/4.1.26b
	2003-03-05 09:18:32 [1] DEBUG: Accept-Language: es
	2003-03-05 09:18:32 [1] DEBUG: Accept: application/x-iden-device
	2003-03-05 09:18:32 [1] DEBUG: Accept: Multipart/mixed
	2003-03-05 09:18:32 [1] DEBUG: Accept-Charset: iso-8859-1
	2003-03-05 09:18:32 [1] DEBUG: WSP: End of decoded headers.

my upsdk simulator
	2003-03-14 13:09:57 [1] DEBUG: WSP: decoded headers:
	2003-03-14 13:09:57 [1] DEBUG: Accept: application/vnd.wap.wmlc; type=1108
	2003-03-14 13:09:57 [1] DEBUG: Accept: application/vnd.wap.wmlc
	2003-03-14 13:09:57 [1] DEBUG: Accept: application/vnd.wap.wmlscriptc
	2003-03-14 13:09:57 [1] DEBUG: User-Agent: OWG1 UP/4.1.20a
	2003-03-14 13:09:57 [1] DEBUG: Accept-Charset: iso-8859-1
	2003-03-14 13:09:57 [1] DEBUG: Accept-Language: en
	2003-03-14 13:09:57 [1] DEBUG: Accept: image/vnd.wap.wbmp; type=0
	2003-03-14 13:09:57 [1] DEBUG: Accept: text/debug
	2003-03-14 13:09:57 [1] DEBUG: Accept: application/x-up-device
	2003-03-14 13:09:57 [1] DEBUG: WSP: End of decoded headers.

*my nokia simulator


	-int wml_compile(Octstr *wml_text,
		Octstr *charset,
		Octstr **wml_binary)

	wml_text have  &#243;
	for  <p>#243; -&#243;-</p>

	-wml_binary_output(*wml_binary, wbxml);
	wml_binary have /xc3/xb3
	for  <p>#243; -&#243;-</p>

	-and the following headers:

	2003-03-14 13:11:37 [1] DEBUG: WSP: decoded headers:
	2003-03-14 13:11:37 [1] DEBUG: User-Agent: Nokia Mobile Browser 3.01
	2003-03-14 13:11:37 [1] DEBUG: Accept: application/vnd.wap.wmlc
	2003-03-14 13:11:37 [1] DEBUG: Accept: application/vnd.wap.wmlscriptc
	2003-03-14 13:11:37 [1] DEBUG: Accept: application/vnd.wap.wbxml
	2003-03-14 13:11:37 [1] DEBUG: Accept: image/vnd.wap.wbmp
	2003-03-14 13:11:37 [1] DEBUG: Accept: image/gif
	2003-03-14 13:11:37 [1] DEBUG: Accept: application/*
	2003-03-14 13:11:37 [1] DEBUG: Accept: text/html
	2003-03-14 13:11:37 [1] DEBUG: Accept: application/xhtml+xml
	2003-03-14 13:11:37 [1] DEBUG: Accept: application/vnd.wap.wml+xml
	2003-03-14 13:11:37 [1] DEBUG: Accept: text/css
	2003-03-14 13:11:37 [1] DEBUG: Accept-Charset: iso-8859-1
	2003-03-14 13:11:37 [1] DEBUG: Accept-Charset: us-ascii
	2003-03-14 13:11:37 [1] DEBUG: Accept-Charset: utf-8; q=0.8
	2003-03-14 13:11:37 [1] DEBUG: Accept-Charset: iso-10646-ucs-2; q=0.6
	2003-03-14 13:11:37 [1] DEBUG: Accept-Language: en
	2003-03-14 13:11:37 [1] DEBUG: Accept-Language: fi
	2003-03-14 13:11:15 [1] DEBUG: WSP: End of decoded headers.

***************************************************************************************************
case2: with <?xml version="1.0" encoding="ISO-8859-1"?>
******************************************************************************************************
*my motorola phone  and up.sdk 4.1 simulator

	-int wml_compile(Octstr *wml_text,
		Octstr *charset,
		Octstr **wml_binary)

		wml_text have  &#243;
		for  <p>#243; -&#243;-</p>

	-wml_binary_output(*wml_binary, wbxml);
		wml_binary have /xc3/xb3
		for  <p>#243; -&#243;-</p>

	-in this case,
	<p>oacute: -ó-</p>  , this line is accepted

		wml_text have  /xf3;
		for  <p>oacute: -ó-</p>

		wml_binary have /xc3/xb3
		for  <p>#243; -&#243;-</p>


	and the following headers:

my phone
	2003-03-05 09:18:32 [1] DEBUG: WSP: decoded headers:
	2003-03-05 09:18:32 [1] DEBUG: Accept: application/vnd.wap.wmlc; type=1108
	2003-03-05 09:18:32 [1] DEBUG: Accept: application/vnd.wap.wmlc
	2003-03-05 09:18:32 [1] DEBUG: Accept: application/vnd.wap.wmlscriptc
	2003-03-05 09:18:32 [1] DEBUG: User-Agent: MOT-87/00.03 UP.Browser/4.1.26b
	2003-03-05 09:18:32 [1] DEBUG: Accept-Language: es
	2003-03-05 09:18:32 [1] DEBUG: Accept: application/x-iden-device
	2003-03-05 09:18:32 [1] DEBUG: Accept: Multipart/mixed
	2003-03-05 09:18:32 [1] DEBUG: Accept-Charset: iso-8859-1
	2003-03-05 09:18:32 [1] DEBUG: WSP: End of decoded headers.


my uplink simulator
	2003-03-14 13:09:57 [1] DEBUG: WSP: decoded headers:
	2003-03-14 13:09:57 [1] DEBUG: Accept: application/vnd.wap.wmlc; type=1108
	2003-03-14 13:09:57 [1] DEBUG: Accept: application/vnd.wap.wmlc
	2003-03-14 13:09:57 [1] DEBUG: Accept: application/vnd.wap.wmlscriptc
	2003-03-14 13:09:57 [1] DEBUG: User-Agent: OWG1 UP/4.1.20a
	2003-03-14 13:09:57 [1] DEBUG: Accept-Charset: iso-8859-1
	2003-03-14 13:09:57 [1] DEBUG: Accept-Language: en
	2003-03-14 13:09:57 [1] DEBUG: Accept: image/vnd.wap.wbmp; type=0
	2003-03-14 13:09:57 [1] DEBUG: Accept: text/debug
	2003-03-14 13:09:57 [1] DEBUG: Accept: application/x-up-device
	2003-03-14 13:09:57 [1] DEBUG: WSP: End of decoded headers.

*my nokia simulator


	-int wml_compile(Octstr *wml_text,
		Octstr *charset,
		Octstr **wml_binary)

	wml_text have  &#243;
	for  <p>#243; -&#243;-</p>

	-wml_binary_output(*wml_binary, wbxml);
	wml_binary have /xc3/xb3
	for  <p>#243; -&#243;-</p>

	-in this case,
	<p>oacute: -ó-</p>  , this line is accepted

		wml_text have  /xf3;
		for  <p>oacute: -ó-</p>

		wml_binary have /xc3/xb3
		for  <p>#243; -&#243;-</p>

	-and the following headers:

	2003-03-14 13:11:37 [1] DEBUG: WSP: decoded headers:
	2003-03-14 13:11:37 [1] DEBUG: User-Agent: Nokia Mobile Browser 3.01
	2003-03-14 13:11:37 [1] DEBUG: Accept: application/vnd.wap.wmlc
	2003-03-14 13:11:37 [1] DEBUG: Accept: application/vnd.wap.wmlscriptc
	2003-03-14 13:11:37 [1] DEBUG: Accept: application/vnd.wap.wbxml
	2003-03-14 13:11:37 [1] DEBUG: Accept: image/vnd.wap.wbmp
	2003-03-14 13:11:37 [1] DEBUG: Accept: image/gif
	2003-03-14 13:11:37 [1] DEBUG: Accept: application/*
	2003-03-14 13:11:37 [1] DEBUG: Accept: text/html
	2003-03-14 13:11:37 [1] DEBUG: Accept: application/xhtml+xml
	2003-03-14 13:11:37 [1] DEBUG: Accept: application/vnd.wap.wml+xml
	2003-03-14 13:11:37 [1] DEBUG: Accept: text/css
	2003-03-14 13:11:37 [1] DEBUG: Accept-Charset: iso-8859-1
	2003-03-14 13:11:37 [1] DEBUG: Accept-Charset: us-ascii
	2003-03-14 13:11:37 [1] DEBUG: Accept-Charset: utf-8; q=0.8
	2003-03-14 13:11:37 [1] DEBUG: Accept-Charset: iso-10646-ucs-2; q=0.6
	2003-03-14 13:11:37 [1] DEBUG: Accept-Language: en
	2003-03-14 13:11:37 [1] DEBUG: Accept-Language: fi
	2003-03-14 13:11:15 [1] DEBUG: WSP: End of decoded headers.


***********************************************************************************************************

In all cases wml_binary have /xc3/xb3, so I guess kannel gateway is encoding 
the information as UTF-8 to my phone or any browser.
It seems my phone only accept the iso-8859-1 charset, so It's treat the 
utf-8(kannel sending) as iso-8859-1, isn't it?
Though the nokia simulator accept utf-8, so it's showing correctly the ó.


I guess the kannel is decoding well the information, the problem is when it 
encode the information to a phone. Am I right?
Does kannel gw always encode the information to the phone as UTF-8 
(wml-binary)???  Could kannel gw encode information to my phone as  
iso-8859-1? How?

Do you have any idea how to solve that issue?
Should kannel code be changed?
I can't change my phone! :(
I need ideas,please!!!!!!!!!!!!!!!!!!!


Thanks in advance,
Ivone






_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger: 
http://messenger.yupimsn.com/
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.