Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Wierd UTF-8 String Problem [SOLVED]



Birkir A. Barkarson wrote:
>> Example:
>>
>> ?\227?\130?\183?\227?\130?\185?\227?\131?\134?\227?\131?\160?\229?\174?\159?\232?\163?\133/trunk/src/
>
>
> Not sure why, but after deducing that this was an environment problem
> I managed to fix the issue with a,
>
> export LANG=ja_JP.UTF-8
>
> at the start of the script.  Must be that the default C environment
> which the Apache user was running caused the mojibake.  Not sure why
> though, I even had Japanese strings directly typed into the script...
> Can anyone offer a descent explanation?

My understanding was that it is trying to modify the string to suit your
environment variables.  It is whatever C corresponds to, ASCII? so it
encodes as a byte sequence.  My understanding is that subversion is
agnostic to the file/folder encoding.  I think you best bet would be to
correctly set LANG environment rather then trying to reverse this.

Edward


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links