brentpaine
13 years agoOccasional Contributor
Outputting Unicode Characters to File
So I'm trying to use TestComplete to test an application with multiple language support. I've written tests, which work on English or other ANSI characters, but I run into a problem with Unicode Characters.
So I'm doing something like this:
Sub main
butText = button1.text
log.message("Text was" & button1.text)
outputtofile(butText)
End Sub
If I do this on English everything is good. If It's Japanese I can actually use log.message and it shows properly in the logs, but even if I just hover over the log message, the tooltip shows "?????" Same issue if I am passing the variable around. It just doesn't seem to like it.
If I'm performing this test, do I need to explicitly change the OS langauge in order to get it to work? Or can I stay in English and somehow deal with the Unicode characters that I'm getting from the application?
I've set up my project properties to be UTF8, but it's still not working. Wondering if I'm missing something.
Thanks in advance!
Brent
So I'm doing something like this:
Sub main
butText = button1.text
log.message("Text was" & button1.text)
outputtofile(butText)
End Sub
If I do this on English everything is good. If It's Japanese I can actually use log.message and it shows properly in the logs, but even if I just hover over the log message, the tooltip shows "?????" Same issue if I am passing the variable around. It just doesn't seem to like it.
If I'm performing this test, do I need to explicitly change the OS langauge in order to get it to work? Or can I stay in English and somehow deal with the Unicode characters that I'm getting from the application?
I've set up my project properties to be UTF8, but it's still not working. Wondering if I'm missing something.
Thanks in advance!
Brent