Arduino Forum

Using Arduino => Networking, Protocols, and Devices => Topic started by: danhajduk on Apr 26, 2013, 07:57 pm

Title: Hebrew chars over tcp/ip
Post by: danhajduk on Apr 26, 2013, 07:57 pm
Hi,
I have android and iOS app sending me string in Hebrew over TCP/IP
This is what i get (printed on serial monitor) :

FFFFFFD7 - ×
FFFFFF93 - ?
FFFFFFD7 - ×
FFFFFFA0 -  
FFFFFFD7 - ×
FFFFFF99 - ?

I don't understand what are the FFFFFFD7
the other are not the right chars in hebrew too

can any1 help me with it?
Title: Re: Hebrew chars over tcp/ip
Post by: billroy on Apr 26, 2013, 08:05 pm
Those are probably Unicode character representations of the Hebrew input, possibly UTF-8.

I haven't seen much about Unicode handling on Arduino, but it's worth a search.  Normally Arduino C only works with the 8-bit ASCII character set (but see UTF-8 for a workaround).

Here's a summary of Unicode: http://en.wikipedia.org/wiki/Unicode

I see a translation table in your future...

-br
Title: Re: Hebrew chars over tcp/ip
Post by: sonnyyu on Apr 27, 2013, 04:08 am
?   d7 93        HEBREW LETTER DALET
?   d7 a0        HEBREW LETTER NUN
?   d7 99     HEBREW LETTER YOD

in my life, this is first time typing copy and paste Hebrew and hope I get it right. if I get it right I will learn HEBREW after retire.

I think billroy is correct it is UTF-8 encode, all I do is see translation table now.
Title: Re: Hebrew chars over tcp/ip
Post by: danhajduk on Apr 28, 2013, 04:51 am
Thanks guys,

I got it now ....
The FFFFF at the beginning was bit confusing ....
I have found the UTF-8 table now just need to convert it and save the relevant data