Solved

Kind of encoding

Posted on 2013-11-22
3
422 Views
Last Modified: 2013-12-20
Hi Experts,
What kind of encoding is this: Â , â , À

And how convert it using Delphi XE4

eg:.

  Â to Â
  â to â
  À to À  
  à to à
  á á
  Ç to Ç
  ç to ç
  ...
  ...
  ...

Thanks for some help
Alexandre
0
Comment
Question by:alpires
3 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39669753
The '&#x' is a prefix that means hexidecimal code follows it.  Here is a list of the hex code for Microsoft ANSI character set.  http://www.alanwood.net/demos/ansi.html
0
 
LVL 1

Expert Comment

by:livestuff
ID: 39670077
UTF-8 and literal char value

go to

http://www.utf8-chartable.de/unicode-utf8-table.pl?start=128&number=128&utf8=string-literal&unicodeinhtml=hex

search for example: xc2

see attached photo
snap6.png
0
 
LVL 26

Accepted Solution

by:
Sinisa Vuk earned 500 total points
ID: 39671221
If you are on Xe4 then you can decode it with:
uses ....,Web.Httpapp;
  
s := UTF8Decode(HTMLDecode(sUrl));

Open in new window


...encode...
uses ....,Web.Httpapp;
  
sUrl := HTMLEncode(UTF8Encode(s));

Open in new window



here is version for older versions...
http://alexey-m.ru/articles/urlencode-utf-8-windows1251
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Re-position the objects 7 109
Problem to page 4 85
Base1 Encode/Decode 3 77
Adjust the position 3 60
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

785 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