Print Page | Close Window

VB6, CJ Textbox, Save to UTF-8 File

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=17504
Printed Date: 23 November 2024 at 1:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VB6, CJ Textbox, Save to UTF-8 File
Posted By: ou81aswell
Subject: VB6, CJ Textbox, Save to UTF-8 File
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net