PHP
$ Str = "1";
IF (preg_match ("/ ^ [". "-". chr (0xff). "] $ /", $ STR) {
Echo "This is a pure Chinese string";
} else {
Echo "This is not a pure Chinese string";
}
?>