soda
15 years agoContributor
Unable to read double-byte characters from txt file using JScript and TC
Hello,
Is there any way to read double-byte characters from a csv or text file using JScript and TestComplete? Both the csv and txt file I have experimented with are UTF-8. My Project character encoding properties are also set to UTF-8.
If I hardcode some Japanese characters into the test script, I am able to use the Keys() method to enter text into an edit box. If the same Japanese characters are placed into a csv or text file, they are converted into completely different characters. It seems that TC can handle the double-byte characters if they are already in the script, but something is not working correctly when reading from a file. Is this simply something that is not possible? Is there a standard way of reading UTF-8 files with double-byte characters?
Thanks,
Mark
Is there any way to read double-byte characters from a csv or text file using JScript and TestComplete? Both the csv and txt file I have experimented with are UTF-8. My Project character encoding properties are also set to UTF-8.
If I hardcode some Japanese characters into the test script, I am able to use the Keys() method to enter text into an edit box. If the same Japanese characters are placed into a csv or text file, they are converted into completely different characters. It seems that TC can handle the double-byte characters if they are already in the script, but something is not working correctly when reading from a file. Is this simply something that is not possible? Is there a standard way of reading UTF-8 files with double-byte characters?
Thanks,
Mark