Jump to content
Sign in to follow this  
avelor

unicode string in object methods

Recommended Posts

avelor

Hello!

I'm trying to manipulate with programm with com-interface. averything is OK, but this awful programm uses methods and objects in non-english unicode language (Russian).

so in autoit I can't use methods like

$t=$group.ПользователиГруппы.add()

because compilator error.

may be exists some methods? for example in vbs I can use non-english methods in square brackets, in C++ exist OlePropertyGet, in python - getattr and setattr, js works well with unicode strings..

thanks for any help, and sorry for bad english=)

 

Share this post


Link to post
Share on other sites
PainTain

As you already mentioned: There is OlePropertyGet. Just DllCall it.

Btw. you are right, using non-ASCII character in any code (excluding comments) is just awful.

Share this post


Link to post
Share on other sites
avelor

t's intersting, but I'm not very strong in it. I even don't know, which dll have this function..

this program is very popular in Russia, and every normal, sane IT-specialist don't like it=)

Share this post


Link to post
Share on other sites
trancexx

AutoIt of course supports this. The problem could be outdated version of the interpreter. What's the version of AutoIt you run your code with?

It could also be Au3Check issue, in which case the solution would be to simply disable that (bad) tool.

There is nothing wrong with your code, and it should run just fine.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
avelor

thanks to everyone, I'm just overworked. I updated autoit, but was starting old ScIte, from old folder. now I rechecked this, made a facepalm, start new version - and it works! thank a lot again =)

Share this post


Link to post
Share on other sites
jchd

Maps from the beta work with Unicode as well like in this silly example:

Local $mRateToEuro[]

$mRateToEuro["€"] = 1
$mRateToEuro["EUR"] = $mRateToEuro.$mRateToEuro["$"] = 0.747441
$mRateToEuro["USD"] = $mRateToEuro["$"]     ; $ is special for AutoIt!
$mRateToEuro["£"] = 1.24745
$mRateToEuro["GBP"] = $mRateToEuro.£
$mRateToEuro["¥"] = 0.00729701
$mRateToEuro["JPY"] = $mRateToEuro.¥
$mRateToEuro["₩"] = 0.000731862
$mRateToEuro.KRW = $mRateToEuro.$mRateToEuro["﷼"] = 0.205336
$mRateToEuro.QAR = $mRateToEuro.$mRateToEuro["₨"] = 0.0122838
$mRateToEuro["INR"] = $mRateToEuro.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×