Codepage return

Moderator: Rathinagiri

Post Reply
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Codepage return

Post by quartz565 »

Hello frieds,
My best wishes for the New Year to all !!

Α question:
Is there any function that returns the codepage of a string ?
(eg "ELWIN" or "EL737")

Nikos
Best Regards,
Nikos.

os: Windows Server 2019 - 64
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: Codepage return

Post by KDJ »

Hi Nikos

Try:
MsgBox(Set(_SET_CODEPAGE))
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: Codepage return

Post by quartz565 »

Thank you very much my friend !

I would like something like this:

WHATCODEPAGE(cString) -> (eg "1253" or "737")

because "cString" may comes from DBF that contains strings with a different codepage format...difficult to explain why :|
Best Regards,
Nikos.

os: Windows Server 2019 - 64
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Codepage return

Post by serge_girard »

Nikos,

See : http://harbourlanguage.blogspot.be/2010 ... epage.html
? HB_CDPUNIID( "ESWIN" ) // -> cp1252

This may help?

Serge
There's nothing you can do that can't be done...
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: Codepage return

Post by quartz565 »

Thank you Serge!
I would see this link. Maybe help. I will let you know.

Nikos
Best Regards,
Nikos.

os: Windows Server 2019 - 64
Post Reply