Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to set codepage for LibreOffice Basic?

Hi, I have library of macros in Calc, which are printing messages that include local characters (czech). When the library is unlocked, messages are shown correctly. But when I set password for the library, reopen the document and trigger the same macro, "?" is shown instead of local character - I have to use "chr$(269)" command to display the character. Interesting is, that when library is unlocked for editing, messages are shown correctly. Is there any way to force specific code page for Basic macros, so I can use regular strings for messages?

Thanks for answer.

How to set codepage for LibreOffice Basic?

Hi, I have library of macros in Calc, which are printing messages that include local characters (czech). When the library is unlocked, messages are shown correctly. But when I set password for the library, reopen the document and trigger the same macro, "?" is shown instead of local character - I have to use "chr$(269)" command to display the character. Interesting is, that when library is unlocked for editing, messages are shown correctly. Is there any way to force specific code page for Basic macros, so I can use regular strings for messages?

Thanks for answer.

How to set codepage code page for LibreOffice Basic?

Hi, I have library of macros in Calc, which are printing messages that include local characters (czech). When the library is unlocked, messages are shown correctly. But when I set password for the library, reopen the document and trigger the same macro, "?" is shown instead of local character - I have to use "chr$(269)" command to display the character. Interesting is, that when library is unlocked for editing, messages are shown correctly. Is there any way to force specific code page for Basic macros, so I can use regular strings for messages?

Thanks Thank you for answer.

How to set code page for LibreOffice Basic?

Hi, I have library of macros in Calc, which are printing messages that include local characters (czech). When the library is unlocked, messages are shown correctly. But when I set password for the library, reopen the document and trigger the same macro, "?" is shown instead of local character - I have to use "chr$(269)" command to display the character. Interesting is, that when library is unlocked for editing, messages are shown correctly. Is there any way to force specific code page for Basic macros, so I can use regular strings for messages?

Thank you for answer.

How to set code page for configure compilation of LibreOffice Basic?

Hi, I have library of macros in Calc, which are printing messages that include local characters (czech). When the library is unlocked, messages are shown correctly. But when I set password for the library, reopen the document and trigger the same macro, "?" is shown instead of local character - I have to use "chr$(269)" command to display the character. Interesting is, that when library is unlocked for editing, messages are shown correctly. Is there any way to force specific code page for Basic macros, so I can use regular strings for messages?

Thank you for answer.

EDIT: So I figured out where is the problem - when i export the library without any password, code is stored as xml encoded in UTF-8. But when I export library with password, macros are stored in .pba archive that contains files "code.bin" and "source.xml" both with ton of unprintable characters. In "code.bin" are some messages readable and contains "?" instead of local characters - just as they are printed. Therefor I changed question. Is there any way to configure compilation of LibreOffice Basic to force UTF-8?

How to configure compilation of LibreOffice Basic?

Hi, I have library of macros in Calc, which are printing messages that include local characters (czech). When the library is unlocked, messages are shown correctly. But when I set password for the library, reopen the document and trigger the same macro, "?" is shown instead of local character - I have to use "chr$(269)" command to display the character. Interesting is, that when library is unlocked for editing, messages are shown correctly. Is there any way to force specific code page for Basic macros, so I can use regular strings for messages?

Thank you for answer.

EDIT: So I figured out where is the problem - when i export the library without any password, code is stored as xml encoded in UTF-8. But when I export library with password, macros are stored in .pba archive that contains files "code.bin" and "source.xml" both with ton of unprintable characters. In "code.bin" are some messages readable and contains "?" instead of local characters - just as they are printed. Therefor I changed question. Is there any way to configure compilation of LibreOffice Basic to force UTF-8?

EDIT: This is known issue - bug 57113. Unfortunately unfixed until today.