hi,
standard text save, is ANSI formatted. So if have to save something in "strange" chars, then you might try Unicode format to save.
But writeln does not support (or i dont know it) Unicode format.
I had a similar problem saving Label specifications for food products.
I use a workaround, i abused an example Marcus showed us:
viewtopic.php?f=2&t=9260#p40503
Code: Select all
VBSTART
Dim JSEngine
Set JSEngine = CreateObject("MSScriptControl.ScriptControl")
JSEngine.Language = "JScript"
Function UrlEncode(s)
UrlEncode = JSEngine.CodeObject.encodeURIComponent(s)
UrlEncode = Replace(UrlEncode, "'", "%27")
UrlEncode = Replace(UrlEncode, """", "%22")
End Function
Function UrlDecode(s)
UrlDecode = Replace(s, "+", " ")
UrlDecode = JSEngine.CodeObject.decodeURIComponent(UrlDecode)
End Function
VBEND
let>filesave=C:\Beheer\Arabic test.txt
DeleteFile>filesave
let>variable_1=Abdullah Al Rowaished Habes Nafsak عبد الله الرويشد - حابس نقسك
MessageModal>original data:%CRLF%%variable_1%
//encode variable_1
VBEval>URLEncode("%variable_1%"),encData
//save to file
WriteLn>filesave,nWLNRes,encData
//ExecuteFile>filesave
//read from file
ReadLn>filesave,1,decData
//decode variable_1
VBEval>URLDecode("%decData%"),variable_1
MessageModal>retreived data:%CRLF%%variable_1%
so this way you can save your "strange" characters and read it later on
Hope this is useable ,
kind regards,
Djek