Ticket #1941 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Qtopia Contact cannot shows utf8 correctly

Reported by: tick Owned by: tick
Priority: normal Milestone: Om2008.9
Component: Qtopia Version: Om2008.9-dev
Severity: normal Keywords: HasPatch
Cc: zecke Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:


After putting the CJK font on to Neo, I can see Chinese message.
But the CSCS is incorrect and unset to UCS2, therefore Language that support IRA may work. (with my sim card.)

My contact therefore is unreadable. :(

I will try to fix it.

Image: Om2008.8-update

Change History

comment:1 Changed 11 years ago by zecke

src/libraries/qtopiaphonemodem/qmodemphonebook.cpp in the Qtopia tree.

Everything that Qtopia is doing is to query for the CharSet? (AT+CSCS?) of the Modem. It is not setting it. When we are going to set it the question is what should we set it to?

ts_100916v070800p.pdf §5.5, should we just set it to UCS2? Qt should be able to UCS2 easily.

comment:2 Changed 11 years ago by tick

  • Status changed from new to accepted

comment:3 Changed 11 years ago by tick

  • Status changed from accepted to closed
  • Resolution set to fixed

Using UCS2 works. >_<
My contact from SIM was ruined, and so that I waste at lot of my time. Using another phone cannot read neither.

Changing another SIM card, it works perfectly.

put patch here. (It's Optional)

diff --git a/src/libraries/qtopiaphonemodem/qmodemphonebook.cpp b/src/libraries/qtopiaphonemodem/qmodemphoneboo
index 776cae1..942a811 100644
--- a/src/libraries/qtopiaphonemodem/qmodemphonebook.cpp
+++ b/src/libraries/qtopiaphonemodem/qmodemphonebook.cpp
@@ -161,6 +161,8 @@ QModemPhoneBook::QModemPhoneBook( QModemService *service )

QObject::connect( d->slowTimer, SIGNAL(timeout()),

this, SLOT(slowTimeout()) );

+ d->service->secondaryAtChat()->chat ( "AT+CSCS=\"UCS2\"");

Default to the "GSM" codec, and then query the actual codec.
d->stringCodec = QAtUtils::codec( "GSM" );

comment:4 Changed 11 years ago by tick

  • Keywords HasPatch added
Note: See TracTickets for help on using tickets.