gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Euro symbols show up as Currency symbols [resolved]


From: Sami Rosenblad
Subject: Re: Euro symbols show up as Currency symbols [resolved]
Date: Thu, 25 Jul 2002 11:29:46 +0300

On Thursday, July 25, 2002, at 02:15 AM, Pawel Kot wrote:

OK. Should be done at the moment in CVS. Just issue:
echo "some text containing euro (\x0a4) character" | gnokii --sendsms 123456

Woohoo! Thanks! It works beautifully now.

Could you please be more specific? Or even send here the dumps of the
sms seinding tries? In fact you don't need to set your terminal to UTF-8.
You can simply use the characters that don't exist in the gsm default
alphabet. Such example are Polish characters (latin2, iso-8859-2).

I think I understand the problem now. Setting the terminal to UTF-8 was a *bad* idea, because that made all non-US characters appear as two bytes. Both bytes in these Unicode characters were probably something that didn't fall into the Latin1 set either, so ended up as "??" in the message.

This is how it works:
1. Get the input data
2. Check whether the input data can be encoded with the default alphabet
2a. If so, send it as the default alphabet
3. Convert the input data to the unicode, accorting to the locale set
4. Send the text as unicode.

I don't expect that anything good may happen when the input is in unicode.
In the future it will look as follows:
1. Get the input data
2. Convert the input data to the unicode, according to the locale set
3. Check whether the input data can be enoded with the default alphabet
3a. If so, send it as the default alphabet
3b. If not, send it as the unicode

Oh yes, these rules indeed imply that all input is completely one-byte characters. Full Unicode support would be sweet, but I'd say don't sweat it. Not many Linux/Unix distros have Unicode support on such levels that one could even comfortably work with Unicode, yet alone input it on the console.

I'm using Mac OS X alongside Linux servers, and it has been a pain to get anything but Latin1 working. OS X has full support for UTF-8, Unicode hex input, multiple non-Roman languages etc. I wish Linux caught up in the near future.

--
Sami Rosenblad -- address@hidden -- "Awk," Grep sed.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]