Hello All,,
PB2017 R3 Windows 10
i have a file with a Ñ on it
Using importFile it converts the Ñ to 2 strange characters
using File functions it also create the same problem
the only solution i found is to replace the characters after the import or fileread
i have try every enconding in the importfile
i am attaching a simple file as an example
if the file is a Unicode file it works.
the problem is that we have no control on the file.
i will check if there is any way to convert the file without en user action
Suggestion: I would use the following coding approach ...
1) Use the FileEncoding() PB command to determine if the import file is Unicode
2) If not, read the file into your PB app using FileReadEx() specifying ANSI
3) Use a FileOpen() to create a new Unicode file and then use FileWriteEx() write original data back out in Unicode format.
After the above steps, Import the new Unicode file as required.
HTH
Regards ... Chris