PDA

Bekijk de volledige versie : need codepage 936/65001 for Chinese user :p,also we us ddns 3322.org



abo
23-03-2007, 14:55
Oleg,please please...
can u add codepage 936/65001 for Chinese users
thx

& we also us ddns:3322.org

my ez-ipupdate.conf file is:

service-type=qdns-static
user=username:password
host=myhost.2233.org
interface=ppp0
retrys=3
period=120
cache-file=/tmp/ez-ipupdate.cache
daemon

we add it in /tmp/local/sbin/post-boot
but codepage how can I DIY :p
thx a lot

everyone please help!

abo
24-03-2007, 01:31
use
nvram set usb_vfat_options=codepage=936,iocharset=cp936
though there is no such codepage.936 etc. files.no codepage files means no translate,but it can work:my computer = codepage.936 ==> wl500g no translate it also codepage.936 :) .That means if you need the codepage there is codepage file support,you can set yours usb_vfat_options just with no translate!

if we use vfat filesystem,only can use 8.3 filename.ext2/3 can support long filename ;) .

caikn
24-04-2007, 21:56
hello abo,

I want to see the chinese filename on my samba share.
I tried the following command,and it really helps. thx a lot!


nvram set usb_vfat_options=codepage=936,iocharset=cp936
nvram commit

But as you mentioned, this solution only supports short (8.3) file name. If I want to use ext2/3 filesystem to support long file name, what should I do?


Can I tell samba to use codepage 936 ?
I find out the samba2 package already contains the files:
/opt/lib/codepages/codepage.936
/opt/lib/codepages/unicode_map.936

But the samba2 can't find these files. In the smd.log files, I find the following errors:



[2007/04/24 22:38:35, 0] lib/util_unistr.c:load_unicode_map(435)
load_unicode_map: filename /usr/codepages/unicode_map.936 does not exist.
[2007/04/24 22:38:35, 0] lib/charset.c:load_client_codepage(215)
load_client_codepage: filename /usr/codepages/codepage.936 does not exist


I thinks the samba2 is complied to look for the codepage files under /usr/codepages. Since the /usr is readonly, I can't move codepage there.

Do I have to recompile the samba2 package or the firmwire with more codepage support?

Any help will be wellcome.

Thanks in advance

caikn

micstar
10-07-2007, 17:03
Hi All,

I am just wondering if there's any supported method on Oleg's firmware that can read/write Chinese (Double Byte) characters on Ext3 file system off my USB HDD? :(

Regards,
Michael

yushengxin
19-07-2007, 02:37
hello abo,

I want to see the chinese filename on my samba share.
I tried the following command,and it really helps. thx a lot!

But as you mentioned, this solution only supports short (8.3) file name. If I want to use ext2/3 filesystem to support long file name, what should I do?


Can I tell samba to use codepage 936 ?
I find out the samba2 package already contains the files:
/opt/lib/codepages/codepage.936
/opt/lib/codepages/unicode_map.936

But the samba2 can't find these files. In the smd.log files, I find the following errors:



[2007/04/24 22:38:35, 0] lib/util_unistr.c:load_unicode_map(435)
load_unicode_map: filename /usr/codepages/unicode_map.936 does not exist.
[2007/04/24 22:38:35, 0] lib/charset.c:load_client_codepage(215)
load_client_codepage: filename /usr/codepages/codepage.936 does not exist


I thinks the samba2 is complied to look for the codepage files under /usr/codepages. Since the /usr is readonly, I can't move codepage there.

Do I have to recompile the samba2 package or the firmwire with more codepage support?

Any help will be wellcome.

Thanks in advance

caikn

hi, could you post two cp936 files here? i am looking for them for long times.
my samba share disk could display chinese filename in windows, but not in xbmc (a media play on xbox). i am trying to handle.

whiteskin
02-09-2007, 01:18
hi, could you post two cp936 files here? i am looking for them for long times.
my samba share disk could display chinese filename in windows, but not in xbmc (a media play on xbox). i am trying to handle.

is this the file you wanted?

sven7
28-09-2007, 02:55
is this the file you wanted?

Thank you very much. I am having such issue for long time. Really to say thank you as such resources. Do you know any Tutor about setup Chinese character on this router? Samba, FTP, Torrent etc etc ? Thx

eiki
01-12-2007, 15:28
has there been a solution yet?
no SAMBA 3 support with double byte?:eek:

yaana
11-02-2008, 05:08
Hi there, I was making a custom firmware the other day, and remembered this thread. so I made a firmware with CP936 files installed in /usr/codepages. The firmware is based on oleg 1.9.2.7-7e for WL-500g (not for gx or gP!). I've used it for serveral days and so far so good, however I don't have a CP936 FAT disk and can't tell if samba works.
Also I've made some other changes to the firmware, the changes are:


Changes made to customized 1.9.2.7-7e firmware:
* added ipt_u32, ipt_IPID, ipt_IDTTL
* deleted all except codepage 437 in /usr/codepages/, added codepage 936
* rm /usr/sbin/waveserver
rm /usr/sbin/lpd
ipt_u32 http://www.netfilter.org/documentation/HOWTO/netfilter-extensions-HOWTO-3.html
ipt_IPID is to modify the ID in IP header, http://www.chinaunix.net/jh/4/888274.html
ipt_IDTTL is the 2in1 of ipt_IPID and ipt_TTL(--ttl-set only)

I've uploaded the firmware to http://yaana.ys168.com/ ,hope this helps. (AND DONT ASK ME IF YOU BRICKED YOUR ROUTER AND DON'T KNOW HOW TO RECOVER)

做这个ipt_IDTTL主要为了对付电信的NAT检测,不过后来改成e家套餐,就用不到这个了,如果需要 的话可以试试:
insmod ipt_IDTTL
iptables -t mangle -A POSTROUTING -o ppp0 -j IDTTL --ipid-inc 1 --ttl-set 64

tiger
16-06-2009, 23:25
is this the file you wanted?

I currently use Oleg firmware 1.9.2.7-10. Do you have files: codepage.1251 and unicode_map.1251? ;)