jdenman Posted January 27, 2006 Posted January 27, 2006 I have a variable (StringBuilder) that I want to save in a specific format (Unicode). I have successfully saved it as UTF-8 (where notepad.exe can view it correctly). This is in reference to the .zcfg files for ZoomSearch (http://www.wrensoft.com/zoom/&e=42). The documentation states that the .zcfg files are in a double byte Unicode format - which I have been unable to reproduce from VB.NET. It seems to be sticking on the carriage returns - they don't get encoded properly or something. Any helpful links/code would be appreciated. Quote
Administrators PlausiblyDamp Posted January 28, 2006 Administrators Posted January 28, 2006 How are you saving the file currently? If you are using a StreamWriter then at least one of the overloads allows you to specify an encoding. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
jdenman Posted January 29, 2006 Author Posted January 29, 2006 How are you saving the file currently? If you are using a StreamWriter then at least one of the overloads allows you to specify an encoding. I've tried specifying the Encoding format as Unicode, UTF-8...but it doesn't seem to effect the end result. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.