1. Attilio iLaga
  2. Valentina Reports ADK
  3. Dienstag, Februar 14 2017, 01:44 PM
  4.  Abonnieren via E-Mail
hello,
I need help in order to format monetary values ​​in the report according to the Italian standard (eg: #. ###, ##). I read in the documentation link of use patterns.
The problem is that using xojo web the "locale" server is set as the American format, then format the data for use by the application xojo.Core.Locale ( "it-IT";). There is also a similar command on valentine report? Is there a way to specify the locale format of reports directly from the application?
Kommentar
There are no comments made yet.
Ruslan Zasukhin Akzeptierte Antwort
Advice,

before call to our func which crashes,
in Xojo debugger -- you can see each string object and its encoding.

We guess that some string has odd encoding. Not Utf8, utf16 AscII

You can check this and if really true, then you can use str.SetEncoding = utf8 for it
Kommentar
There are no comments made yet.
Ruslan Zasukhin Akzeptierte Antwort
Yes we made few changes (to get better speed) with Xojo strings.

We use now other funds of Xojo SDK for plugins.
But it seems, our code is not protected yet for all possible string encodings.

Right now code is ready to get UTF8, UTf16, ASCII strings.
Kommentar
There are no comments made yet.
Attilio iLaga Akzeptierte Antwort
If not specific encoding Debugging defines nil. Using DefineEncoding (ds_str, Encodings.UTF8) sect properly
Anhänge
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
And with encoding defined for all 3 parameters - the same crash happens?
Kommentar
There are no comments made yet.
Attilio iLaga Akzeptierte Antwort
No, no more crashes. Now it all works.
Thank you
Kommentar
There are no comments made yet.
  • Seite :
  • 1
  • 2


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories