467,119 Members | 1,180 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,119 developers. It's quick & easy.

ENCODING loss on Read and Write file

encoding loss here, i presume

Visual Web Developer 2005 creates a new html file

with Visual Web Developer 2005 I write some odd chars

the browser displays them good


with vb code net (fx 2.0) I open the html file

I add the "hallo" string in the Body section
(near the odd chars)

I save the file

the browser doesn't display the odd chars
(now I see only the ? char in their positions,
that is the question mark)

how to open and write a file
keeping the original encoding
(I think when managing html file
the encoding offered by Visual Web Developer
is the best and it is to be kept ) ?

Or at least, never loose an odd char after Reading and Writing?

Code, ideas, workarounds, external dll...
everything is appreciated

Jun 27 '08 #1
  • viewed: 750

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Ksenia Marasanova | last post: by
6 posts views Thread by quincy | last post: by
3 posts views Thread by Jon Davis | last post: by
11 posts views Thread by LucaJonny | last post: by
7 posts views Thread by MrNobody | last post: by
6 posts views Thread by kath | last post: by
1 post views Thread by ujjwaltrivedi@gmail.com | last post: by
8 posts views Thread by =?gb2312?B?yMvR1MLkyNXKx8zs0cSjrM37vKvM7NHEsru8+7z | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.