Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read strings from International languages?

Status
Not open for further replies.

snakemaster

Programmer
May 10, 2001
6
NL
I've placed two rich textbox controls and one button on a form. What I want to achieve is that when I click the button, the 2nd textbox will display the HTML code for the rich textbox 1.
Something like: richtextbox2.text = ConvertToHTML(RichTextBox1.Text)

ConvertToHtml is a function that searches for an international character and replaces it with the proper HTML code.
But as soon as I pass the text property to this ConvertToHTML, VB replaces some international (in this case Croatian) characters into question marks. What do I have to do in order for VB to pass a string that represents the exact same content as the textbox?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top