July 2010
S M T W T F S
« Jun    
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

Thursday, 21st of January 2010 at 10:09:14 AM

QNAP TS-409 Pro add UTF8 locale

I add the UTF8 locale to my NAS TS-409. Hope it will work for solving the wrong encoding in the file system.

Here is ref

QNAP TS-409 Pro添加中文UTF8 locale,

How to modify autorun.sh in Qnap

Change locale for mldonkey 3.0

From


echo "Starting mlnet daemon...
"[ -f "/usr/lib/locale/locale-archive" ] || /usr/bin/localedef -i en_US -f UTF-8 en_US.UTF-8
#export LANG
LANGVAR=`/usr/bin/locale | grep LANG | cut -f 2 -d "="`[ "x${LANGVAR}" != x ] || export LANG=zh_TW.UTF-8

To

echo "Starting mlnet daemon...
#"[ -f "/usr/lib/locale/locale-archive" ] || /usr/bin/localedef -i en_US -f UTF-8 en_US.UTF-8
#export LANG
#LANGVAR=`/usr/bin/locale | grep LANG | cut -f 2 -d "="` [ "x${LANGVAR}" != x ] || export LANG=zh_TW.UTF-8
export LANG=zh_TW.UTF-8
Related Posts with Thumbnails

Related posts

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>