Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support


All forums · Statistics · Search ·

Two Pilots forum / For software developers / LoadHTMLString + Unicode
Author Message
ThomasP
# Posted: 13 Jul 2007 09:14


Is it possible to Convert a unicode string with LoadHTMLString (HTML2PDF) ?

I am trying to convert a string containing unicode, and when doing this :

Dim fso As FileSystemObject
Dim tx As TextStream
Set tx = fso.CreateTextFile(Path & "t.html", True, True)
tx.Write utfString
tx.Close

...

html.LoadHTMLFile2 Path & "t.html", RefPath


it is working, but when doing this :

html.LoadHTMLString UtfString, RefPath

unicode is rendered with "????" instead of unicode characters.

(I am using latest version downloaded today + IE7)

mvf
Member
# Posted: 16 Jul 2007 01:32


You probably tried to pass UTF-8 string (UTF8Encoding) to the LoadHTMLString. You should use unicode (UnicodeEncoding).

ThomasP
# Posted: 16 Jul 2007 04:21


How do I do that ?
in visual basic ?

ThomasP
# Posted: 19 Jul 2007 04:29


I am currently using Visual Basic 6, and I don(t know how to pass UnicodeEncoding string instead of UTF8Encoding.

Do you have any advice ?

Thank you

 

 

Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.013

 

Page top