Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...