Link to home
Start Free TrialLog in
Avatar of PeterTrefren
PeterTrefrenFlag for United States of America

asked on

using the print function in VB 6.0 to output spanish characters

I'm trying to output a file that contains Spanish text using the Print function in VB 6.0.  Does anyone know of a way to output the characters correctly?  I'm outputting to a plain text file.  
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PeterTrefren

ASKER

This code will work.  However I think there is a small error in the getUnicodeValue.  I changed line 21 to For i = 1 To i < Len(v) Step 2 to avoid an error I was getting with the mid function.  The problem I was having is that the orignal code would output the htm files in ascii format and be viewed correctly with both notepad and in the browser.  However Expressions would not read the special characters properly.  Expressions can correctly view the files in source code view when they are outputted as unicode.  Thanks for the help!