|
|
#1 |
|
Junior Member
Join Date: Apr 2006
Posts: 37
|
Return unicode of a character
Is there a function in NSIS that can return the unicode of a certain character? Something similar to charCodeAt() in JavaScript?
|
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,336
|
You can use the System plug-in to convert strings into Unicode. There are many ways to do that, even with that plug-in. If you provide a little more details about what exactly you're trying to do, I can show you the best solution for the problem.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2006
Posts: 37
|
Edit: I just need to loop on every character in a string, obtain its unicode value, and do some operation on it.
|
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,336
|
Build a Unicode string and read it 2 bytes at a time.
code: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Apr 2006
Posts: 37
|
Excellent... Exactly what I needed. Thank you!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|