markus
12/04/2022, 3:52 PMö
or ä
. And NetSuite shows those now wrong.
My file says in Notepad++ that it is ANSI / CR LF encoded, but when in script I check fileObj.encoding
it says that file is UTF-8.
Here is test example with string: Test Characteröä
How could I solve this issue? The file comes automatically to my script from server, so I can't manually change the encoding...Watz
12/04/2022, 6:52 PMWatz
12/04/2022, 7:05 PMbattk
12/04/2022, 8:40 PMbattk
12/04/2022, 8:41 PMbattk
12/04/2022, 8:43 PMmarkus
12/05/2022, 2:30 PMfile.load
. Then I use the fileObj.lines.iterator()
to go trough the lines.
I tried to look at the supported encodings. But is any of those even close to the ANSI / CR LF coding my file seems to be?battk
12/05/2022, 2:40 PMbattk
12/05/2022, 2:40 PMbattk
12/05/2022, 2:41 PMWINDOWS_1252
battk
12/05/2022, 2:41 PMbattk
12/05/2022, 2:44 PMWatz
12/05/2022, 3:09 PMmarkus
12/08/2022, 10:25 AMbattk
12/08/2022, 10:27 AMbattk
12/08/2022, 10:27 AMbattk
12/08/2022, 10:27 AMbattk
12/08/2022, 10:28 AMbattk
12/08/2022, 10:28 AMbattk
12/08/2022, 10:29 AMmarkus
12/08/2022, 10:41 AMbattk
12/08/2022, 10:47 AMmarkus
12/08/2022, 11:59 AM