Aw: $O6 - file import problem
"Stephan Wüseke"
wueseke at web.de
Sat Dec 21 11:54:03 EST 2013
Hi Mischa,
did you try using FileOps (External Component)? You can specify the encoding
here:
Do oFops.$openfile(%%filepath)
Do oFops.$readcharacter(kUniTypeUTF8,%%content)
Do oFops.$closefile()
Where "oFops" is a (local) variable from type object and subtype "FileOps"..
HTH,
Stephan
Gesendet: Samstag, 21. Dezember 2013 um 16:01 Uhr
Von: Mischa <mischa at omnislab.com>
An: "'OmnisDev List - English'" <omnisdev-en at lists.omnis-dev.com>
Betreff: $O6 - file import problem
Dear all,
I want to import a csv file into Studio 6, however having trouble with the
encoding. Its native format is UTF-8, however 'Read file as character'
results in a strange looking Thai or Chinese character set when imported.
$root.$prefs.$importencoding is set to kUniTypeUTF8
When I convert the csv file to ANSI and try to import it (encoding set to
AnsiCentralEuropean) Omnis crashes.
Any help would be greatly appreciated!
Mischa
_____________________________________________________________
Manage your list subscriptions at [1]http://lists.omnis-dev.com
References
1. http://lists.omnis-dev.com/
More information about the omnisdev-en
mailing list