Go Back   TX Text Control Community > TX Text Control Discussion and Support Forums > TX Text Control ActiveX

TX Text Control ActiveX Please use this forum for TX Text Control ActiveX support only. If you need support for a different product, please use the appropriate forum.

Reply
 
Thread Tools Display Modes
  #1  
Old March 3, 2010
kschaldenbrand kschaldenbrand is offline
Registered User
 
Join Date: Sep 2008
Posts: 3
LoadFromMemory for HTML containing Unicode characters

Here's my second HTML-related question for the day:

I am trying to read-in HTML text that includes some Unicode characters with the LoadFromMemory method. If I use the format 4 (HTML) it loads the HTML correctly, but the Unicode characters get dropped, or replaced with "?". If I use format 6 (Unicode), then the Unicode characters come in, but obviously it displays the embedded HTML codes.

If the HTML is saved as a file, and the Load method is used (with format 4), then the Unicode characters are correctly displayed. However, I would *strongly* prefer not to have to code it this way, as this is content coming from a database, so always having to create a temporary file in order to display it correctly is not very efficient.

Is there any way around this??

-Kurt

Here is a sample:

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
</HEAD>
<BODY>

<P><FONT SIZE=2>En ny kandidat har søgt på proselection.dk.<BR>
<BR>
- First : Søren<BR>
- Ansøgningsdato :<BR>
- Sag titel : Ambitiøs controller søges til veletableret virksomhed<BR>
- City : København S<BR>
- Land : Danmark<BR>
- Lønkrav inkl. pension :<BR>
- Jobstatus : I job<BR>
- Administrativ : Aktiv<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
Reply With Quote
  #2  
Old March 4, 2010
Gunnar Giffey's Avatar
Gunnar Giffey Gunnar Giffey is offline
TX Support Engineer
TX Text Control
 
Join Date: Sep 2004
Location: Bremen, Germany
Posts: 4,083
Re: LoadFromMemory for HTML containing Unicode characters

Hi Kurt,
I guess that the Unicode characters are already lost after you got that HTML from the database. Could you please check that?
Also, how do you exactly retreive the content from the database?
__________________
Regards,
Gunnar Giffey, TX Text Control
[Forum Administrator]
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unicode characters Ron TX Text Control ActiveX Server 14 August 28, 2006 09:55:15
Problem saving unicode into PDF format peals97 TX Text Control ActiveX 3 July 7, 2006 14:32:53
Unicode characters to tables? JarnoL TX Text Control ActiveX Server 1 September 23, 2004 12:16:07
Tx Text Control Unicode Support Omaar TX Text Control ActiveX 2 September 28, 2003 23:45:51


All times are GMT +1. The time now is 20:27:51.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 1991 - 2010 The Imaging Source Europe GmbH