how to convert...

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts Page 1 of 1
Contributors
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

how to convert...
Dummy1912
Hello

who can tell me what the html code char for this image can be

Image

i have tried:
Code: Select all
é = é
but i still get a :

Image

thanks
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Re: how to convert...
comathi
If I'm not mistaken, the first image you showed means the same thing as the second image you showed. When the page is unable to display a certain character, that's usually the symbol that would be displayed.

Do you mean you want to specifically display that symbol, or are you trying to make it show a "é"?

If that's the case, you could write "é" literally, but you might want to change the page encoding to utf-8 to make sure it's compatible :)

To do this, add the following in your page header:
Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: how to convert...
Dummy1912
hello #comathi

how do i use this in webbrowser.documentText?
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Re: how to convert...
comathi
Something like this should be able to work:
Code: Select all
Dim metas As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("meta")

For i = 1 To metas.Count - 1
If metas(i).GetAttribute("http-equiv").ToLower() = "content-type" Then metas(i).SetAttribute("content", "text/html; charset=utf-8")
Next
I'm not entirely sure this will work, but it's worth giving it a try ;)
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: how to convert...
Dummy1912
sorry didn't work :(
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
5 posts Page 1 of 1
Return to “Coding Help & Support”