Forum Discussion

brentpaine's avatar
brentpaine
Occasional Contributor
13 years ago

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 

2 Replies

  • brentpaine's avatar
    brentpaine
    Occasional Contributor
    Ugh! Yeah, I saw that article but I was hoping that there was something that would allow me to do it without forcing a reboot. 



    I suppose if that's the only way, then I'll just have to live with it, but I just don't get why I can log a message and it appears properly, but I can't take that same text and output it to file and have it work. 



    Either way, I'll give it a shot and if that's how it's go to be then I guess I'll just have to work with it. 



    Thanks! 



    Brent