unicode chars from a webpage?

Zexor

Well-known member
Joined
Nov 28, 2008
Messages
520
Programming Experience
3-5
how do i change a string of unicode to something i can read? say i have a test string of a bunch of unicode chars from a webpage. And they look like this

ヵヶ

the browser seem to convert them automatically here after i type the unicode

&# 12531;&# 12532;&# 12533;&# 12534;

i added a space in it so it doesnt convert here

How do i display the actual characters on a listbox
 
You can use HttpUtility.HtmlDecode method of System.Web namespace. This is available in System.Web assembly and you must compile for .Net 4.0 (and not the default .Net 4.0 Client Profile) to use this, see Target Framework here: Advanced Compiler Settings Dialog Box (Visual Basic)
 
You have to reference System.Web assembly as I said.
 
Back
Top