Hi Mockey,

>local u1 = unicode.new("var=title")
>local u2 = unicode.new("inputdialog")
>local res = unicode.inputdialog(u1, u2)
>But only once, second call to function crashes PPro as well.
>And also displays not quite right because title is displayed 
>as "var=title", should be "title".

See docs: First param of inputdialog must be ascii string, not unicode
string.  

I may be able to change that, so you can have unicode titles:
but of course variables names will have to map back into legal
PowerPro variable names, i.e. ascii

Do you want to be able to have unicode var=title?

local u1 = unicode.new("burble")
local u2 = unicode.new("inputdialog")
local res = unicode.inputdialog("u1=hi there", u2)

But, there is an error in inputdialog that causes crash on second run.
 Easy fix.

==========================================

>Also the handle-syntax does not seem to work for file-services:
>Shouldn't that be correct?
>local fh = unicode.file_open("C:/test.txt", "w", 1, 0)
>fh.file_writeline("äöüßblablablaäöüß")
>fh.close
>gives the error:
>"Cannot locate plugin service Win.file_writeline"
>Or do handles only work for unicode-strings?

I only did handles for unicode-strings.  I can add handles for files,
quite easy.

==========================================

>Trying to write to a UTF-8-file doesn't succeed for multi-byte chars:
>local fh = unicode.file_open("C:/test.txt", "w", 1, 0)
>local u1 = unicode.new("äöüßblablablaäöüß")
>unicode.file_writeline(fh, u1, "u")
>unicode.file_close(fh)
>gives me:
>"blablabla" in the file
>Windows-unicode (UCS-2, I think) works fine OTOH with:
>unicode.file_open("C:/test.txt", "w", 1, 1)

Doesn't surprise me.  Documentation on wrting UTF-8-file is crap.  

If you have a UTF-8 file handy, can you read it?

I'll see what I can sort out.

> Would it be possible to add a service that returns the UTF8-(ASCII-)
> string of an ANSI-string? I.e. multi-byte letters like äöüß?

No idea.  Your example got mangled in transmission.  Mutlibyte ANSI? 
Tell me more.

If you want releaseall fixed, inputdialog corrected and file handles,
you can probably have them instantly-ish.

Or you can wait a bit while I mess around with UTF-8 files and
Mutlibyte ANSI.







Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to