According to the former anticles(see it upwards),I have added chinese character Catergory,but URL(dir-name in host) change into chinese that time i do not want to see it, what should i do? thanks for any help
Subject Re: Why Can't add chinese character Catergory?
Posted by Joey Bost (Member)
Posted on 21-Dec-98 03:49 AM
Try this.
Man I can't tell you how much I hate that(Name: Invalid) well heres how I did it, you may or may not want to do it this way(that mod for special caraters, I couldnt never get it to work so I just did it like this. In the category.def find and change this
%db_valid_types = ( 'Name' => '^[\w][\w\d/_]+$' );
to this
%db_valid_types = ( );
Now in the nph-build.cgi under sub build_check_dir {
delete this
if (!($input =~ m,^[\w\d/_\Q$build_allow_char\E]+$,)) {
&cgierr ("invalid directory name: $input. Reason: contains illegal characters.");
}
You can now add any cariter you want.(p.s. it might not work on certain servers but you can try
Thanks
Joey
Subject Re: Why Can't add chinese character Catergory?
Posted by Joey Bost (Member)
Posted on 21-Dec-98 03:49 AM
Try this.
Man I can't tell you how much I hate that(Name: Invalid) well heres how I did it, you may or may not want to do it this way(that mod for special caraters, I couldnt never get it to work so I just did it like this. In the category.def find and change this
%db_valid_types = ( 'Name' => '^[\w][\w\d/_]+$' );
to this
%db_valid_types = ( );
Now in the nph-build.cgi under sub build_check_dir {
delete this
if (!($input =~ m,^[\w\d/_\Q$build_allow_char\E]+$,)) {
&cgierr ("invalid directory name: $input. Reason: contains illegal characters.");
}
You can now add any cariter you want.(p.s. it might not work on certain servers but you can try
Thanks
Joey