[SlimDevices: 3rd-party-hardware] Re: Chinese and other asian chars
in SSODS
hkfriends
hkfriends.2it6ub1166105101 at no-mx.forums.slimdevices.com
Thu Dec 14 06:01:40 PST 2006
Everything look fine after modify the follwing codes
There is no need to re-create the filename, I can see Chinese even in
folder level.
Many thanks to Flipflip !!!
flipflip;162220 Wrote:
> Ok, utf8 filnams is possible as follows:
>
> 1. Change smb.conf as said above.
>
> I.e. edit /usr/syno/etc.defaults/smb.conf and add the line
>
> unix charset=utf8
>
> to the [global] section.
>
>
> 2. Modify /volume1/SlimServer/Slim/Utils/Unicode.pm
>
> At around line 158 (SS 6.5.0):
>
> >
Code:
--------------------
> >
> # CJK Locales
> $lc_ctype =~ s/eucjp/euc-jp/i;
> $lc_ctype =~ s/ujis/euc-jp/i;
> $lc_ctype =~ s/sjis/shiftjis/i;
> $lc_ctype =~ s/euckr/euc-kr/i;
> $lc_ctype =~ s/big5/big5-eten/i;
> $lc_ctype =~ s/gb2312/euc-cn/i;
> }
>
>
> # ADD THIS LINE:
> $lc_ctype = 'utf8';
>
> # Setup suspects for Encode::Guess based on the locale - we might also
> # want to use our own Language pref?
> if ($lc_ctype ne 'utf8') {
>
> Encode::Guess->add_suspects($lc_ctype);
> }
>
--------------------
> >
--
hkfriends
------------------------------------------------------------------------
hkfriends's Profile: http://forums.slimdevices.com/member.php?userid=7292
View this thread: http://forums.slimdevices.com/showthread.php?t=30401
More information about the 3rd-party-hardware
mailing list