joelewis1910
Programmer
Hi,
I am a newbie here. My problem is that i have a Chinese character string mixed with some ascii characters and I want to remove all the ascii chars from it and get back only the chinese characters. The command - awk '{ gsub(/[\041-\177]/, ""); printf $0 }' actually removes all the ascii characters but it also changed some existing chinese characters in the string to other. Any idea!
thanks in advance,
joe
I am a newbie here. My problem is that i have a Chinese character string mixed with some ascii characters and I want to remove all the ascii chars from it and get back only the chinese characters. The command - awk '{ gsub(/[\041-\177]/, ""); printf $0 }' actually removes all the ascii characters but it also changed some existing chinese characters in the string to other. Any idea!
thanks in advance,
joe