You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Assaf Arkin <ar...@intalio.com> on 2008/04/01 04:42:33 UTC

Re: Umlauts

On Fri, Mar 28, 2008 at 5:58 AM, Ingo Schmidt <an...@der-ingo.de> wrote:

> Hi!
>
> Only now I have discovered that German umlauts (and possibly all other
> kinds of special characters) are getting messed up when they are being
> archived in WAR (and probably any other archive).
> For example, if I do have a file called:
> project_root/src/main/webapp/download/ÄÖÜäöüß.txt
>
> then it will later end up as:
> EAR/WAR/download/&#9472;Í&#9604;õ÷³&#9600;.txt
>
> I am working under Windows XP Pro. Maybe this doesn't happen under Linux.
> Is there any way to fix this or a workaround (except renaming those files,
> which I actually don't want to do)? Is this a buildr problem or a problem of
> ruby/rake?
>
> Does anyone else experience these problems? I am using buildr from SVN
> repository.


I got good results on OS/X, but on XP I couldn't get past stage one,
creating a file with umlauts in its name.  It ended up creating a file with
weird characters, and then reading it as an entirely different filename.
 I'm guessing there's some encoding happening, but I don't know where.

Maybe changing the value of $KCODE could help (I just set it to UTF-8 in
trunk, which didn't seem to make much of a difference either way)?

Assaf


>
>
> Cheers, Ingo =;->
>

Re: Umlauts

Posted by Ingo Schmidt <an...@der-ingo.de>.
Hi Assaf!

> I got good results on OS/X, but on XP I couldn't get past stage one,

Using a decent OS you get decent results. But I have no choice ;)

> Maybe changing the value of $KCODE could help (I just set it to UTF-8 in
> trunk, which didn't seem to make much of a difference either way)?

Well, if you use the jar tool of the JDK you will get exactly the same
crappy results. I start to get the bad feeling that this is unfixable,
but actually don't want to believe that.

If anyone has an idea on that one, it would be highly appreciated.


Cheers, Ingo =;->