VB6, CJ Textbox, Save to UTF-8 File |
Post Reply |
Author | |
ou81aswell
Groupie Joined: 05 June 2009 Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: 01 November 2010 at 10:23am |
I can copy and then paste Japanese characters in UTF-8 from Notepad++ to my VB6 app that uses the CJ textbox control without any problems. The characters appear in the textbox exactly as they do in Notepad++.
My problem is that when I save the contents of the textbox to a disk file, it gets converted back to ANSI and the Japanese characters are replaced with question marks.
I have used an ADODB.stream to create the UTF-8 encoded file realizing that VB6's built in Open and Print #fn commands are ANSI and StrConv(myStr, vbUnicode) returns text encoded as UTF-16.
I'm obviously doing something wrong so I was hoping someone had a VB6 example of how to save the text in a CJ textbox to a UTF-8 encoded text file.
Thanks.
CJ ActiveX Suite 13.2.1
|
|
VB6, CJ 13.2.1, targeting XP, Vista and Win7
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |