Solved

Convert HTML to widestring?

Posted on 2002-06-06
6
361 Views
Last Modified: 2008-01-16
How can I convert an HTML text to widestring, and convert all the special character to unicode?

like this

<span>this is a &Oslash; test</span>

Where &Oslash; should be a unicode value in the widestring.
0
Comment
Question by:Smilly
6 Comments
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 100 total points
ID: 7060191
converting it is easy ... simply use StringToOleStr and SysFreeString to free the allocated memory

except I dunno about those forbidden chars
will look it up
0
 
LVL 2

Assisted Solution

by:SChertkov
SChertkov earned 100 total points
ID: 7061781
Delphi6 have function HTMLDecode in unit HTTPApp for
converting special character in HTML text.
But this function produce Ansi string and work with small set of special characters.
 
0
 
LVL 1

Author Comment

by:Smilly
ID: 7079801
Hi SChertkov

I dont have a function named HTMLDecode in the unit HTTPApp, I only have a HTTPDecode function.

Smilly
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 7079813
>> Delphi6 have function HTMLDecode in unit HTTPApp for
converting special character in HTML text.

Smilly do you have D6 ? .. because I have that function
HTTPDecode and HTMLDecode
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9010466
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between Lee_Nover and SChertkov

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
calling Tcolordialog in dll make the form disappear 8 103
Delphi - replicating a form 8 62
Delphi: Connect to running MS Outlook 4 47
JAudiorecorder record freezing the app 29 59
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now