Android Question listview control and greek characters

kalarius

Active Member
Licensed User
Longtime User
I have a file pelaths.csv which contain name and phone number at each line
with the FX explorer editor and other editors I can read the names ( these are at greek language with utf-8)


I read the file and I add the name to a listview control but the names shows as ???????

How can I add the names to listview and show me greek characters?

Kalarakis
Greece
 

Peter Simpson

Expert
Licensed User
Longtime User
UTF-8 is correct?
I'm going to presume that you are NOT using TextReader, you should in fact be using StringUtils, you can then easily use LoadCSV to load the file into a list.

You should also use log(...) to see what exactly is happening before you insert each line into your listview, you can remove the log(...) once everything is working as planned.

Thinking about it, I believe that in the beginners guide there's an example on how to load a csv file into a list using LoadCSV.
 
Last edited:
Upvote 0

kalarius

Active Member
Licensed User
Longtime User
this is my file
I do not have a problem to load the lines to the list view
the problem is that any greek character shows as ??
english character does not have a problem
 

Attachments

  • Pelaths.zip
    288 bytes · Views: 265
Upvote 0

kalarius

Active Member
Licensed User
Longtime User
this is a part of accesss table
when I export to file the access ask for the character code and I check the utf-8
 
Upvote 0

kalarius

Active Member
Licensed User
Longtime User
at the left side is my list and at right is the file that you sent to me
From excel 2013 I export it to csv file
 

Attachments

  • greekch.jpg
    greekch.jpg
    168.3 KB · Views: 267
Upvote 0

kalarius

Active Member
Licensed User
Longtime User
i try an other way

mT as textreader
mt.Initialize2(File.OpenInput(file.Dirinternal ,"pelaths.csv"),"ISO-8859-7")

this is OK
iso-8859-7 is windows excel greek code page
so I can read the file contents at windows enviroment and at android
 
Upvote 0
Top