Hi guys,
I've got an issue with Chinese characters appearing when I read a (text) CSV file!
When I open the CSV file in the Android app in GO mode, then use fReadLine, I can't get to the bottom of why it didn't seem to be working as expected. When I added a Trace command I discovered that the Trace(sCSVRow) line of code below displays as Chinese characters: :confused:
(Note: the RETURN at the end is just so the rest of the processing doesn't execute - it's just for trying to trace this issue)
I've looked at the project settings, but can't see why this would be happening. The text file, when opening notepad or Notepad++ looks fine :confused:
Any idea where I can look?
I've got an issue with Chinese characters appearing when I read a (text) CSV file!
When I open the CSV file in the Android app in GO mode, then use fReadLine, I can't get to the bottom of why it didn't seem to be working as expected. When I added a Trace command I discovered that the Trace(sCSVRow) line of code below displays as Chinese characters: :confused:
(Note: the RETURN at the end is just so the rest of the processing doesn't execute - it's just for trying to trace this issue)
sFullFileName is string = fDataDir() + "/" + sFileName
nFileNum = fOpen(sFullFileName)
// Was the file opened or was there an error?
IF nFileNum = -1 THEN
// Display error message and go back to the button
ToastDisplay("Error: File was not found in " + fDataDir(),toastLong,vaMiddle,haCenter)
// Enable plane 0 (main) after error
WIN_Data_Import..Plane = 0
// Return to specific screen object
ReturnToCapture(BTN_Course_Material)
ELSE
// Read the first row and throw it away - it's just headers
sCSVRow = fReadLine(nFileNum)
Trace("This appears in non-Chinese chars!")
Trace(sCSVRow)
RETURN
I've looked at the project settings, but can't see why this would be happening. The text file, when opening notepad or Notepad++ looks fine :confused:
Any idea where I can look?