New Posts  All Forums:Forum Nav:

Delphi 7 Unicode

post #1 of 2
Thread Starter 
I hope I can get some programmers' support here.

Anyways - I have problems retrieving some specific Unicode codepages in Delphi 7.

I am doing an encoding project and it involves converting some texts from Unicode to their corresponding codes (example: 'A' = 65)
Delphi 7 is non-Unicode version of Delphi, so I can't wite the characters by hand and I have to get them 'internally'.
I want to encode/decode to/from Latin and Cyrillic.
ANSI chars can be retreived by Ord() function and their codes are correct. Cyrillic is when problems kick in - Ord, as expected, returns just code 63, what corresponds to '?' char.

Are there any custom units I can use to get Cyrillic char codes or some built-in functions?

typer.gif Trying to figure it out by myself, but I really hope someone can help me with this.
Edited by DVIELIS - 11/8/13 at 6:23am
The Snow White
(19 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-8120 msi 990fxa-gd65 Gigabyte R9 290 8GB of Crucial Technology ST51264BA1339.16FM 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Barracuda ST31000524AS 1TB Kingston 120Gb SSD Seagate ST1000VX000-1CU162 1TB LG DVD Burner - Bulk Black SATA Model GH24NS50 
CoolingCoolingOSMonitor
Corsair H80i Corsair H90 Windows 10 Pro LG 29MA73D-PZ 
KeyboardPowerCaseMouse
Logitec K120 Cooler Master V700 Fractal Design Define R4 Acme MA06 
Mouse PadOtherOther
Kingston HyperX Skyn Control Surface 4-channel fan speed controller NZXT Kraken G10 
  hide details  
Reply
The Snow White
(19 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-8120 msi 990fxa-gd65 Gigabyte R9 290 8GB of Crucial Technology ST51264BA1339.16FM 
Hard DriveHard DriveHard DriveOptical Drive
Seagate Barracuda ST31000524AS 1TB Kingston 120Gb SSD Seagate ST1000VX000-1CU162 1TB LG DVD Burner - Bulk Black SATA Model GH24NS50 
CoolingCoolingOSMonitor
Corsair H80i Corsair H90 Windows 10 Pro LG 29MA73D-PZ 
KeyboardPowerCaseMouse
Logitec K120 Cooler Master V700 Fractal Design Define R4 Acme MA06 
Mouse PadOtherOther
Kingston HyperX Skyn Control Surface 4-channel fan speed controller NZXT Kraken G10 
  hide details  
Reply
post #2 of 2
I've not used Unicode in Delphi, so I can't give any specific help there, but generally speaking I think the problem lies with the length of Unicode characters. They're 2 or 3 bytes long (depending on the Unicode standard - UTF-8 is two bytes, I think 16 and 32 are 3). So i think Ord might only be pulling the first byte of the Unicode.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming