Seite 1 von 2
Internal ScriptEditor - problem with UTF-8 chars
Verfasst: 02 Dez 2013, 07:05
von mirkt
One more thing!
I was making some scripts with PackageBuilder and got problems with lithuanian characters (clients have seen "??" in opsi-winst messages instead of them).. ueluekmen suggested trying another editor:
viewtopic.php?f=8&t=5490#p24689
and it appeared that the problem is related to PackageBuilder..
What I have noticed:
PackageBuilder's script editor leaves strange symbols at the end of file:
Because of that:
$ file -i delsub3264.ins
delsub3264.ins: text/plain;
charset=binary
after deleting those characters:
$ file -i delsub3264.ins
delsub3264.ins: text/plain;
charset=iso-8859-1
Recoding to UTF-8:
$ recode iso8859-13..utf-8 delsub3264.ins
$ file -i delsub3264.ins
delsub3264.ins: text/plain;
charset=utf-8
and now I can see lithuanian characters in opsi-winst messages..
What about UTF-8 support in PackageBuilder's internal script editor?
Good luck

Re: Kommentare zum OPSI PackageBuilder
Verfasst: 10 Dez 2013, 13:33
von pandel
Hi mirkt,
have been away for a while, so sorry for the late reply...
Thanks for your error report. I'll try to address this problem, but I think I'm not able to fix it any time soon.
Regards,
Holger
Re: Kommentare zum OPSI PackageBuilder
Verfasst: 10 Feb 2014, 12:56
von mirkt
Dear pandel, are you going to release a new version of PackageBuilder?
Re: Kommentare zum OPSI PackageBuilder
Verfasst: 10 Feb 2014, 13:09
von pandel
Hi mirkt! I have version 5.9 ready and it is waiting for some tests. There won't be anything really fancy in it, some small improvements and compatibility issues have been addressed, and such... Regarding your UTF-8 problem with the included editor: I investigated the problem, but I'm not really sure why this is happening. As I use the Scintilla component internally for the main editor stuff, it should handle UTF-8 correctly by itself. Perhaps there is a bug in it or so... nevertheless, I am not aware of any kind of solution for this at the moment. Sorry to say that, I tried, but failed so far...
Re: Kommentare zum OPSI PackageBuilder
Verfasst: 12 Feb 2014, 12:55
von pandel
@mirkt: Gotcha! I think I have improved ScriptEditor's UTF-8 handling. Would you be willing to test it? That would help me a lot

...
Re: Kommentare zum OPSI PackageBuilder
Verfasst: 13 Feb 2014, 12:21
von mirkt
Wow, thank you!
pandel hat geschrieben:@mirkt: Gotcha! I think I have improved ScriptEditor's UTF-8 handling. Would you be willing to test it? That would help me a lot

...
Re: Kommentare zum OPSI PackageBuilder
Verfasst: 14 Feb 2014, 08:01
von mirkt
pandel hat geschrieben:@mirkt: Gotcha! I think I have improved ScriptEditor's UTF-8 handling. Would you be willing to test it? That would help me a lot

...
Maybe I am doing something wrong, but it doesn't really work for me..
test package with Lithuanian characters in Message:
"Save" and reopen with simple script editor.. Lithuanian characters gone:
Adding Lithuanian characters with external editor:
Opening with simple script editor:
„Save“ and reopen:
By the way, ctrl + s still calls „Save As“ although it's written that ctrl + s = save
Thank you for all great work!
Re: Kommentare zum OPSI PackageBuilder
Verfasst: 14 Feb 2014, 13:03
von pandel
DAMN!!!!!!
@mirkt: could you please post YOUR test script with Lithuanian characters here, so that I can do this Save/Re-Open tests myself to sort this problem out. I think it is better to have your original test script than anything else I could come up with to test it...
BTW, you're right, the menu description for ctrl+s is still wrong, too. Gotta fix that asap...
Re: Kommentare zum OPSI PackageBuilder
Verfasst: 16 Feb 2014, 20:56
von mirkt
http://sapnas.net/tmp/opsi/setup32.ins
it's just setup32.ins from template with:
I included several German characters as well :}
Re: Kommentare zum OPSI PackageBuilder
Verfasst: 17 Feb 2014, 11:04
von pandel
Many, many thanks! I try to find the problem as soon as possible
