PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Re: Saving a xml file as UTF-8
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Re: Saving a xml file as UTF-8
![]() |
Re: Saving a xml file as UTF-8 |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Roy <Roy@discussions.microsoft.com> wrote:
> Is there any way to Save an existing xml file as UTF-8 via program. The > header of xml file specifies UTF-8, but it has been saved as ANSI not UTF-8. > Any suggestions would be appreciated. Sounds like the fact that it's XML is irrelevant - read the file in using ANSI, write it out using UTF-8. See http://www.pobox.com/~skeet/csharp/unicode.html for sample conversion code. (You just need to change the encodings involved.) -- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet If replying to the group, please do not mail me too |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

