[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 465
  • Last Modified:

Kind of encoding

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
alpires
Asked:
alpires
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
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
 
livestuffCommented:
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
 
Sinisa VukCommented:
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now