format-dateTime character set issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

format-dateTime character set issue

Gerrit Boers
Hi,

I'm having problems with the format-dateTime function. I use it like this:
<xforms:output ref="valueSet/@effectiveDate" xxforms:format="format-dateTime(.,'[D1o] [MNn] [Y]', substring(instance('language'),1,2), (), ())"/>

language contains the extended codes e.g. de-DE, en-US. When set to de-DE the name is not displayed correctly:



As can be seen, 'Vorläufig' is displayed correct. There are no problems anywhere else, just with the format-dateTime function.

Does anybody know a solution for this?

regards,

Gerrit


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: format-dateTime character set issue

Erik Bruchez
Administrator
Gerrit,

The issue seems to be an encoding issue with this file:


I notice that these too is incorrect:


They seem incorrect in my local copy of the Saxon svn as well.

Are you able to send a pull request (or copy of the file) with fixes? These files should match Saxon 9.1.

-Erik

On Wed, Jun 27, 2012 at 7:40 AM, Gerrit Boers <[hidden email]> wrote:
Hi,

I'm having problems with the format-dateTime function. I use it like this:
<xforms:output ref="valueSet/@effectiveDate" xxforms:format="format-dateTime(.,'[D1o] [MNn] [Y]', substring(instance('language'),1,2), (), ())"/>

language contains the extended codes e.g. de-DE, en-US. When set to de-DE the name is not displayed correctly:



As can be seen, 'Vorläufig' is displayed correct. There are no problems anywhere else, just with the format-dateTime function.

Does anybody know a solution for this?

regards,

Gerrit


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: format-dateTime character set issue

Gerrit Boers
Hi Erik,

I'm not proficient (yet) with git, but I looked at the Saxon 9.4 sources and the problems seems to be fixed in that version.


I suppose the other files are corrected as well.


regards,

Gerrit

On Jun 28, 2012, at 6:27 AM, Erik Bruchez wrote:

Gerrit,

The issue seems to be an encoding issue with this file:


I notice that these too is incorrect:


They seem incorrect in my local copy of the Saxon svn as well.

Are you able to send a pull request (or copy of the file) with fixes? These files should match Saxon 9.1.

-Erik

On Wed, Jun 27, 2012 at 7:40 AM, Gerrit Boers <[hidden email]> wrote:
Hi,

I'm having problems with the format-dateTime function. I use it like this:
<xforms:output ref="valueSet/@effectiveDate" xxforms:format="format-dateTime(.,'[D1o] [MNn] [Y]', substring(instance('language'),1,2), (), ())"/>

language contains the extended codes e.g. de-DE, en-US. When set to de-DE the name is not displayed correctly:


<Screen shot 2012-06-27 at 4.36.57 PM.png>

As can be seen, 'Vorläufig' is displayed correct. There are no problems anywhere else, just with the format-dateTime function.

Does anybody know a solution for this?

regards,

Gerrit


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Numberer_de.java (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: format-dateTime character set issue

Erik Bruchez
Administrator
Thanks, that's an easy one. I made a build of Saxon which patches these files.

You should be able to just replace your Saxon JAR with the one from this commit:

https://github.com/orbeon/orbeon-forms/commit/60ce7c112098ce30721287c3edf02f8cf3df3252

-Erik

On Wed, Jun 27, 2012 at 11:48 PM, Gerrit Boers <[hidden email]> wrote:

> Hi Erik,
>
> I'm not proficient (yet) with git, but I looked at the Saxon 9.4 sources and
> the problems seems to be fixed in that version.
>
>
> I suppose the other files are corrected as well.
>
>
> regards,
>
> Gerrit
>
> On Jun 28, 2012, at 6:27 AM, Erik Bruchez wrote:
>
> Gerrit,
>
> The issue seems to be an encoding issue with this file:
>
> https://github.com/orbeon/saxon/blob/master/src/org/orbeon/saxon/number/Numberer_de.java
>
> I notice that these too is incorrect:
>
> https://github.com/orbeon/saxon/blob/master/src/org/orbeon/saxon/number/Numberer_da.java
> https://github.com/orbeon/saxon/blob/master/src/org/orbeon/saxon/number/Numberer_sv.java
>
> They seem incorrect in my local copy of the Saxon svn as well.
>
> Are you able to send a pull request (or copy of the file) with fixes? These
> files should match Saxon 9.1.
>
> -Erik
>
> On Wed, Jun 27, 2012 at 7:40 AM, Gerrit Boers <[hidden email]> wrote:
>>
>> Hi,
>>
>> I'm having problems with the format-dateTime function. I use it like this:
>> <xforms:output ref="valueSet/@effectiveDate"
>> xxforms:format="format-dateTime(.,'[D1o] [MNn] [Y]',
>> substring(instance('language'),1,2), (), ())"/>
>>
>> language contains the extended codes e.g. de-DE, en-US. When set to de-DE
>> the name is not displayed correctly:
>>
>>
>> <Screen shot 2012-06-27 at 4.36.57 PM.png>
>>
>> As can be seen, 'Vorläufig' is displayed correct. There are no problems
>> anywhere else, just with the format-dateTime function.
>>
>> Does anybody know a solution for this?
>>
>> regards,
>>
>> Gerrit
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws