I make an application in which I connect to the internet over GPRS and download a txt file from an http address. My main problem is tha character encoding. When trying toread a specific line of the file which is in english I have no problem at all! But when this line is in Greek I get a weird string in which (except numbers, spaces, commas and points) all greek letters are given like this:
for example for the greek sequence of letters 9 Σ.Μπ I get this one: 9 &#χ3A3.Μο.
In the webpage from where I download this file the encoding is UNICODE.
What can I do to get the correct letters so that when sending them to a greek mobile phone via sms, they can be read them correctly!
And another problem is the following: how can I know the size of the file before downloading it with http protocol. I know there is " wip_getFileSize(channel, eventhandler)" function (in the ftp example in wip datasheet) but I cannot use it since httpCreateClient gets NULL for the eventhandler, so there cannot be any handler for the wip_getFileSize(channel, eventhandler) function like in ftp example… How can this be done?
Please somebody help me!
Thank you very much!