|
-
Apr 26th, 2004, 02:56 AM
#1
Thread Starter
Hyperactive Member
UTF -8 encoding with Streamwriter destroys my character..[Resolved by dynamic_sysop]
Good damn! I have searched my ass off because of this. When you use the streamreader you can use something like this
"filepath", System.Text.Encoding.Default, that open a file with my default encoder ( ANSI ). But when i use streamwriter, i cannot choose which encoder i will write with.
The streamwriter write files with UTF - 8 encoder, and that is messing my Swedish character up.
Pleease! Is there anyone here that can give me some advice??
Last edited by Libero; Apr 27th, 2004 at 04:41 AM.
-
Apr 26th, 2004, 03:53 PM
#2
like this you mean?
VB Code:
Dim sWriter As New IO.StreamWriter(New IO.FileStream("C:\some_path.txt", IO.FileMode.OpenOrCreate), System.Text.Encoding.Default)
'/// do stuff to write your file here.
-
Apr 27th, 2004, 01:41 AM
#3
Thread Starter
Hyperactive Member
OHHH! MY GOD! ( sorry for screaming ) I thought this was some f*****g bug. Like i said, i have searched in the hole damn WWW to get this correct. And i posted my question here, and now the problem is solved.. dynamic_sysop i wish i could give you a beer. Yeah, i will PM you that. Thank you sooo much!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|