Solved

Convert HTML to widestring?

Posted on 2002-06-06
6
360 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
>> 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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

10 Experts available now in Live!

Get 1:1 Help Now