473,383 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Need code : Ansi to UTF-8 either in VB.net or C#

HI, I have been trying to read an html file and convert it to UTF-8. It happens so that, i am using System.Text.Encoding.Convert syntax to change the bytes into UTF-8 format from Unicode. Later, writing the same in the form of string to an UTF-8 format. This works but actually the generated output is a mixture of chinese and unicode symbols.

The html uses the meta tag UTF-8 encoding to display in the Internet Explorer Browser. The OutPut generated bymy code is different, when compared with the HTML output displayed in the browser.

If anyone has worked on this kind of code, please advice. Happend to be working on this from past few days.

-Jay.
[Jayaprakash]
Nov 13 '06 #1
0 1393

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: aa | last post by:
Is it OK to include an ANSI file into a UTF-8 file?
1
by: Michael L. | last post by:
Hi there, How can I convert an ANSI string to utf-8 ? Thanks!
0
by: Eric Giguere | last post by:
Back in August of 1990 I posted to the comp.std.c newsgroup a document I had written entitled "The ANSI Standard: A Summary for the C Programmer". I have converted it to HTML and reposted it as a...
13
by: Dan V. | last post by:
How do I create a one line text file with these control codes? e.g.: 144 = 0x90 and 147 = 0x93? I am trying to create a one line text file with these characters all one one row with no spaces. ...
2
by: Ziver MALHASOGLU | last post by:
Hi, I produce a text file using my windows application written with c#. -- System.Text.Encoding encOutput=null; encOutput=System.Text.Encoding.UTF8; StreamWriter sw=new...
40
by: apprentice | last post by:
Hello, I'm writing an class library that I imagine people from different countries might be interested in using, so I'm considering what needs to be provided to support foreign languages,...
135
by: Xah Lee | last post by:
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about...
1
by: JJayaprakash | last post by:
Hi, help me to convert characters from Ansi to UTF-8. I have been trying by using System.Text.Encoding.Convert to change the bytes from Ansi to UTF-8. It is getting converted to different...
1
by: Gandalf | last post by:
I used sqliteadmin to manage my sqlite database and I copy past queries translated from mysql phpmyadmin output it worked (little slowly but worked...), the only problem now is that sqliteadmin...
4
by: forest demon | last post by:
i've been trying to create a code snippet that would contain a special character...i.e. a trademark symbol (™). but to no avail. whether in the CDATA section or a literal definition, no workie!...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.