Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - VB6, CJ Textbox, Save to UTF-8 File
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

VB6, CJ Textbox, Save to UTF-8 File

 Post Reply Post Reply
Author
Message
ou81aswell View Drop Down
Groupie
Groupie


Joined: 05 June 2009
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ou81aswell Quote  Post ReplyReply Direct Link To This Post Topic: VB6, CJ Textbox, Save to UTF-8 File
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.