is it possible to use autoit from newlisp

Started by mostlywrong, February 05, 2009, 05:58:15 PM

Previous topic - Next topic

m35

#15
Quote from: "mostlywrong"ok, real question. windows does not Do utf-8?

It depends on what you mean by "do".

The core Windows API will only accept 1-byte-per-character strings that are localized with the current locale, or UTF-16 strings (as far as I know). But the Windows API also provides the MultiByteToWideChar and WideCharToMultiByte functions to convert between other types of strings.


Quote from: "mostlywrong"it looks like the string in unicode are all 16bit unicode. how does that mesh with newlisps utf-8 ?


What string are you talking about?

newLISP doesn't really have a way to deal with UTF-16 strings, either in its ANSI version or its UTF-8 version. You have to convert between UTF-16 and either ANSI or UTF-8. You can do this with the win32api, another lib, or find the http://www.faqs.org/rfcs/rfc3629.html">Unicode specifications and roll your own.

mostlywrong

#16
sorry it looks like I dropped an S on the words strings in that sentence.  



I am trying to understand what the differences between LPCSTR LPWSTR LPCWSTR.



How Utf-8 relates to it (because there is a utf-8 newlisp)



The desire to do the project that i first had in mind is a lot smaller now, but I would like get a little working knowledge of how to pass and convert to and from unicode.

xytroxon

#17
Here's a link to UTF-8 on Wikipedia:

http://en.wikipedia.org/wiki/UTF-8">//http://en.wikipedia.org/wiki/UTF-8



And to UTF-16

http://en.wikipedia.org/wiki/UTF-16">//http://en.wikipedia.org/wiki/UTF-16



-- xytroxon
\"Many computers can print only capital letters, so we shall not use lowercase letters.\"

-- Let\'s Talk Lisp (c) 1976