BotDetect CAPTCHA Chinese Localization

This page contains the details of Chinese Captcha (中国验证码, 中国captcha) locales fully supported by BotDetect, for which there are both localized Captcha images and audio Captcha sounds available.

Supported Chinese CAPTCHA Locales

Chinese Mandarin CAPTCHA

Captcha Locale overview:

Language Country BotDetect Locale settings
Mandarin PRC cmn, cmn-CN, zh-cmn-CN

Examples and specifications of individual Captcha feature localizations:

Chinese Mandarin Localized CAPTCHA Images

Example Captcha images generated by BotDetect using the base Simplified Han character set for all Captcha ImageStyle values can be seen in the BotDetect Captcha image styles demo

To use BotDetect Captcha images localized for the Chinese Mandarin Captcha Locale in your application, you can specify the Locale value:

  • In PHP applications, you can use either the application-global setting in the lib/botdetect/CaptchaConfig.php file:
    // Set the default Locale for all Captcha instances in the 
    // PHP application to Chinese Mandarin
    $LBD_CaptchaConfig->Locale = 'cmn-CN';
    or the Captcha object instance-specific value:
    <?php 
      $SampleCaptcha = new Captcha("SampleCaptcha");
      $SampleCaptcha->UserInputID = "CaptchaCode";
      // Set the Captcha object instance Locale to Chinese Mandarin
      $SampleCaptcha->Locale = 'cmn-CN';
      echo $SampleCaptcha->Html(); 
    ?>
  • In ASP.NET applications, you can use either the .aspx page source:
    <!-- Captcha control localized to Chinese Mandarin -->
    <BotDetect:Captcha ID="SampleCaptcha" runat="server" Locale="cmn-CN" />
    or the page code-behind:
    [C#]
        
    // Set the Captcha instance Locale to Chinese Mandarin    
    SampleCaptcha.Locale = "cmn-CN";
    [VB.NET]
        
    ' Set the Captcha instance Locale to Chinese Mandarin    
    SampleCaptcha.Locale = "cmn-CN"

    Locale-dependent Captcha strings can be configured in the <botDetect> Web.config configuration section.

  • In ASP Classic applications, you can use either the application-global setting in the BotDetect\CaptchaConfig.asp file:
    ' Set the default Locale for all Captcha instances in the 
    ' Classic ASP application to Chinese Mandarin
    LBD_Configuration_Locale = "cmn-CN"
    or the Captcha object instance-specific value:
    <%
      Dim SampleCaptcha : Set SampleCaptcha = (New Captcha)("SampleCaptcha")
      SampleCaptcha.UserInputID = "CaptchaCode"
      ' Set the Captcha object instance Locale to Chinese Mandarin
      SampleCaptcha.Locale = "cmn-CN"
      Response.Write SampleCaptcha.Html
    %>

Chinese Mandarin Localized Audio CAPTCHA Sounds

Example audio Captcha sounds generated by BotDetect using the Chinese Mandarin Locale setting can be heard in the BotDetect Captcha features demo

To use BotDetect sounds localized for the Chinese Mandarin Captcha Locale, you should also download the Chinese Mandarin Pronunciation Sound Package and deploy the .bdsp file to the BotDetect sounds folder your application uses:

  • PHP applications always use lib/botdetect/Resources/Sounds.
  • ASP.NET applications use Bin\BotDetectSounds by default. A custom folder can be specified in the <botDetect> configuration section.
  • ASP Classic applications use Redistribute\BotDetectSounds in the BotDetect installation folder by default. A custom folder can be specified in the BotDetect/CaptchaConfig.asp file.

Chinese Mandarin Localized CAPTCHA Codes

The cmn-CN Captcha locale uses the default Simplified Han character set, consisting of 24 Wubi keyboard input method representative characters.

Unicode Captcha Codes and Font Requirements

This table on the left uses the actual Unicode characters drawn in localized Captcha images.

Displaying these characters in your browser requires having fonts which support them installed on the client machine.

In ASP.NET and ASP Classic versions of BotDetect, generating localized Captcha images using these characters also requires supporting fonts on your server.

If viewing these characters in your browser or generating them in Captcha images on your server fails, you can enable the required localization support for on both client and server machines using Control Panel:

Windows 2000, XP, 2003 Server: Regional and Language Options → Languages → Supplemental language support.

Windows Vista, 7, 2008 Server: Region and Language → Keyboards and Languages → Install/uninstall languages.

CodeStyle.Alpha Chinese Mandarin CAPTCHA Characters
Unicode code point Name Character
0x91D1 gold
0x4EBA person
0x6708 moon
0x767D white
0x79BE grain
0x8A00 speech
0x7ACB stand
0x6C34 water
0x706B fire
0x4E4B it
0x5DE5 work
0x6728 wood
0x5927 big
0x571F earth
0x738B king
0x76EE eye
0x65E5 sun
0x53E3 mouth
0x7530 field
0x5C71 mountain
0x53C8 again
0x5973 woman
0x5B50 child
0x5DF2 already
CodeStyle.Numeric Chinese Mandarin CAPTCHA Characters
Unicode code point Name Character
0x0030 zero 0
0x0031 one 1
0x0032 two 2
0x0033 three 3
0x0034 four 4
0x0035 five 5
0x0036 six 6
0x0037 seven 7 (not used)
0x0038 eight 8
0x0039 nine 9
CodeStyle.Alphanumeric Chinese Mandarin CAPTCHA Characters
Unicode code point Name Character
0x91D1 gold
0x4EBA person
0x6708 moon
0x767D white
0x79BE grain
0x8A00 speech
0x7ACB stand
0x6C34 water
0x706B fire
0x4E4B it
0x5DE5 work
0x6728 wood
0x5927 big
0x571F earth
0x738B king
0x76EE eye
0x65E5 sun
0x53E3 mouth
0x7530 field
0x5C71 mountain
0x53C8 again
0x5973 woman
0x5B50 child
0x5DF2 already
0x0030 zero 0
0x0031 one 1
0x0032 two 2
0x0033 three 3
0x0034 four 4
0x0035 five 5
0x0036 six 6
0x0037 seven 7 (not used)
0x0038 eight 8
0x0039 nine 9

If you want to customize the exact character set used for Captcha code generation, you can specify your custom charsets in PHP, ASP.NET and Classic ASP implementations of BotDetect.

Hong Kong Cantonese CAPTCHA

Captcha Locale overview:

Language Country BotDetect Locale settings
Cantonese Hong Kong yue-HK, zh-yue-HK

Examples and specifications of individual Captcha feature localizations:

Hong Kong Cantonese Localized CAPTCHA Images

Example Captcha images generated by BotDetect using the base Traditional Han character set for all Captcha ImageStyle values can be seen in the BotDetect Captcha image styles demo

To use BotDetect Captcha images localized for the Hong Kong Cantonese Captcha Locale in your application, you can specify the Locale value:

  • In PHP applications, you can use either the application-global setting in the lib/botdetect/CaptchaConfig.php file:
    // Set the default Locale for all Captcha instances in the 
    // PHP application to Hong Kong Cantonese
    $LBD_CaptchaConfig->Locale = 'yue-HK';
    or the Captcha object instance-specific value:
    <?php 
      $SampleCaptcha = new Captcha("SampleCaptcha");
      $SampleCaptcha->UserInputID = "CaptchaCode";
      // Set the Captcha object instance Locale to Hong Kong Cantonese
      $SampleCaptcha->Locale = 'yue-HK';
      echo $SampleCaptcha->Html(); 
    ?>
  • In ASP.NET applications, you can use either the .aspx page source:
    <!-- Captcha control localized to Hong Kong Cantonese -->
    <BotDetect:Captcha ID="SampleCaptcha" runat="server" Locale="yue-HK" />
    or the page code-behind:
    [C#]
        
    // Set the Captcha instance Locale to Hong Kong Cantonese    
    SampleCaptcha.Locale = "yue-HK";
    [VB.NET]
        
    ' Set the Captcha instance Locale to Hong Kong Cantonese    
    SampleCaptcha.Locale = "yue-HK"

    Locale-dependent Captcha strings can be configured in the <botDetect> Web.config configuration section.

  • In ASP Classic applications, you can use either the application-global setting in the BotDetect\CaptchaConfig.asp file:
    ' Set the default Locale for all Captcha instances in the 
    ' Classic ASP application to Hong Kong Cantonese
    LBD_Configuration_Locale = "yue-HK"
    or the Captcha object instance-specific value:
    <%
      Dim SampleCaptcha : Set SampleCaptcha = (New Captcha)("SampleCaptcha")
      SampleCaptcha.UserInputID = "CaptchaCode"
      ' Set the Captcha object instance Locale to Hong Kong Cantonese
      SampleCaptcha.Locale = "yue-HK"
      Response.Write SampleCaptcha.Html
    %>

Hong Kong Cantonese Localized Audio CAPTCHA Sounds

Example audio Captcha sounds generated by BotDetect using the Hong Kong Cantonese Locale setting can be heard in the BotDetect Captcha features demo

To use BotDetect sounds localized for the Hong Kong Cantonese Captcha Locale, you should also download the Hong Kong Cantonese Pronunciation Sound Package and deploy the .bdsp file to the BotDetect sounds folder your application uses:

  • PHP applications always use lib/botdetect/Resources/Sounds.
  • ASP.NET applications use Bin\BotDetectSounds by default. A custom folder can be specified in the <botDetect> configuration section.
  • ASP Classic applications use Redistribute\BotDetectSounds in the BotDetect installation folder by default. A custom folder can be specified in the BotDetect/CaptchaConfig.asp file.

Hong Kong Cantonese Localized CAPTCHA Codes

The yue-HK Captcha locale uses the default Traditional Han character set, consisting of 24 Cangjie radicals.

Unicode Captcha Codes and Font Requirements

This table on the left uses the actual Unicode characters drawn in localized Captcha images.

Displaying these characters in your browser requires having fonts which support them installed on the client machine.

In ASP.NET and ASP Classic versions of BotDetect, generating localized Captcha images using these characters also requires supporting fonts on your server.

If viewing these characters in your browser or generating them in Captcha images on your server fails, you can enable the required localization support for on both client and server machines using Control Panel:

Windows 2000, XP, 2003 Server: Regional and Language Options → Languages → Supplemental language support.

Windows Vista, 7, 2008 Server: Region and Language → Keyboards and Languages → Install/uninstall languages.

CodeStyle.Alpha Hong Kong Cantonese CAPTCHA Characters
Unicode code point Name Character
0x4E00 one (not used)
0x4E2D centre
0x4EBA person
0x5341 ten
0x535C fortune telling
0x53E3 mouth
0x571F earth
0x5927 big
0x5973 woman
0x5C38 corpse
0x5C71 mountain
0x5EFF twenty 廿
0x5F13 bow
0x5FC3 heart
0x6208 weapon
0x624B hand
0x65E5 sun
0x6708 moon
0x6728 wood
0x6C34 water
0x706B fire
0x7530 field
0x7AF9 bamboo
0x91D1 gold
CodeStyle.Numeric Hong Kong Cantonese CAPTCHA Characters
Unicode code point Name Character
0x0030 zero 0
0x0031 one 1
0x0032 two 2
0x0033 three 3
0x0034 four 4
0x0035 five 5
0x0036 six 6
0x0037 seven 7 (not used)
0x0038 eight 8
0x0039 nine 9
CodeStyle.Alphanumeric Hong Kong Cantonese CAPTCHA Characters
Unicode code point Name Character
0x4E00 one (not used)
0x4E2D centre
0x4EBA person
0x5341 ten
0x535C fortune telling
0x53E3 mouth
0x571F earth
0x5927 big
0x5973 woman
0x5C38 corpse
0x5C71 mountain
0x5EFF twenty 廿
0x5F13 bow
0x5FC3 heart
0x6208 weapon
0x624B hand
0x65E5 sun
0x6708 moon
0x6728 wood
0x6C34 water
0x706B fire
0x7530 field
0x7AF9 bamboo
0x91D1 gold
0x0030 zero 0
0x0031 one 1
0x0032 two 2
0x0033 three 3
0x0034 four 4
0x0035 five 5
0x0036 six 6
0x0037 seven 7 (not used)
0x0038 eight 8
0x0039 nine 9

If you want to customize the exact character set used for Captcha code generation, you can specify your custom charsets in PHP, ASP.NET and Classic ASP implementations of BotDetect.