BotDetect CAPTCHA Serbian Localization

This page contains the details of Serbian Captcha (српска Captcha) locales fully supported by BotDetect, for which there are both localized Captcha images and audio Captcha sounds available.

Supported Serbian CAPTCHA Locales

Serbian CAPTCHA

Captcha Locale overview:

Language Country BotDetect Locale settings
Serbian Serbia sr

Examples and specifications of individual Captcha feature localizations:

Serbian Localized CAPTCHA Images

Example Captcha images generated by BotDetect using the base Cyrillic 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 Serbian Captcha Locale in your application, you can specify the Locale value:

  • In ASP.NET applications, you can use either the .aspx page source:
    <!-- Captcha control localized to Serbian -->
    <BotDetect:WebFormsCaptcha ID="ExampleCaptcha" runat="server" Locale="sr" />
    or the page code-behind:
    [C#]
        
    // Set the Captcha instance Locale to Serbian    
    ExampleCaptcha.Locale = "sr";
    [VB.NET]
        
    ' Set the Captcha instance Locale to Serbian    
    ExampleCaptcha.Locale = "sr"

    or Locale-dependent Captcha strings can be configured on application level in the <botDetect> Web.config configuration section:

    <botDetect locale="sr" 
  • In Java applications, you can use either the application web.xml configuration file setting:
    <context-param>
      <param-name>BDC_locale</param-name>
      <param-value>sr</param-value>
    </context-param>
    
    or the Captcha object instance-specific value:
    exampleCaptcha.setLocale("sr"); 
    
    or Standard / Facelets JSF Captcha Tag page source:
    <botDetect:jsfCaptcha id="exampleCaptcha" locale="sr"
    
    or JSP Captcha Tag page source:
    <botDetect:captcha id="exampleCaptcha" locale="sr"
    
  • 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 Serbian
    BotDetect.Locale = "sr"
    or the Captcha object instance-specific value:
    <%
      Dim ExampleCaptcha : Set ExampleCaptcha = (New Captcha)("ExampleCaptcha")
      ExampleCaptcha.UserInputID = "CaptchaCode"
      ' Set the Captcha object instance Locale to Serbian
      ExampleCaptcha.Locale = "sr"
      Response.Write ExampleCaptcha.Html
    %>
  • In PHP applications, you can use either the application-global setting in the lib/botdetect/CaptchaConfigDefaults.php file:
    // Set the default Locale for all Captcha instances in the 
    // PHP application to Serbian
    $BDC_CaptchaConfig->Locale = 'sr';
    or the Captcha object instance-specific value:
    <?php 
      $ExampleCaptcha = new Captcha("ExampleCaptcha");
      $ExampleCaptcha->UserInputID = "CaptchaCode";
      // Set the Captcha object instance Locale to Serbian
      $ExampleCaptcha->Locale = 'sr';
      echo $ExampleCaptcha->Html(); 
    ?>

Serbian Localized Audio CAPTCHA Sounds

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

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

  • ASP.NET applications use Bin\BotDetectSounds by default. A custom folder can be specified in the <botDetect> configuration section.
  • Java applications use WEB-INF\BotDetectSounds by default. A custom folder can be specified in the web.xml configuration file setting.
  • 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.
  • PHP applications always use lib/botdetect/Resources/Sounds.

Serbian Localized CAPTCHA Codes

The sr Captcha locale uses the default Cyrillic character set, consisting of 25 characters without the Я character for a total of 24 alpha 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 Serbian CAPTCHA Characters
Unicode code point Name Character
0x0410 a А
0x0411 be Б
0x0412 ve В
0x0413 ge Г
0x0414 de Д
0x0415 e Е
0x0416 že Ж
0x0417 ze З (not used)
0x0418 i И
0x041A ka К
0x041B le Л
0x041C me М
0x041D ne Н
0x041E o О
0x041F pe П
0x0420 re Р
0x0421 se С
0x0422 te Т
0x0423 u У
0x0424 fe Ф
0x0425 ha Х
0x0426 e Ц
0x0427 će Ч
0x0428 ša Ш
CodeStyle.Numeric Serbian CAPTCHA Characters
Unicode code point Name Character
0x0030 nula 0
0x0031 jedan 1
0x0032 dva 2
0x0033 tri 3
0x0034 četiri 4
0x0035 pet 5
0x0036 šest 6
0x0037 sedam 7 (not used)
0x0038 osam 8
0x0039 devet 9
CodeStyle.Alphanumeric Serbian CAPTCHA Characters
Unicode code point Name Character
0x0410 a А
0x0411 be Б
0x0412 ve В
0x0413 ge Г
0x0414 de Д
0x0415 e Е
0x0416 že Ж
0x0417 ze З (not used)
0x0418 i И
0x041A ka К
0x041B le Л
0x041C me М
0x041D ne Н
0x041E o О
0x041F pe П
0x0420 re Р
0x0421 se С
0x0422 te Т
0x0423 u У
0x0424 fe Ф
0x0425 ha Х
0x0426 ce Ц
0x0427 če Ч
0x0428 ša Ш
0x0030 nula 0 (not used)
0x0031 jedan 1 (not used)
0x0032 dva 2 (not used)
0x0033 tri 3
0x0034 četiri 4
0x0035 pet 5
0x0036 šest 6
0x0037 sedam 7 (not used)
0x0038 osam 8
0x0039 devet 9

Serbian CAPTCHA

Captcha Locale overview:

Language Country BotDetect Locale settings
Serbian Serbia sr-Latn

Examples and specifications of individual Captcha feature localizations:

Serbian Localized CAPTCHA Images

Example Captcha images generated by BotDetect using the base Latin 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 Serbian Captcha Locale in your application, you can specify the Locale value:

  • In ASP.NET applications, you can use either the .aspx page source:
    <!-- Captcha control localized to Serbian Latin -->
    <BotDetect:WebFormsCaptcha ID="ExampleCaptcha" runat="server" Locale="sr-Latn" />
    or the page code-behind:
    [C#]
        
    // Set the Captcha instance Locale to Serbian Latin    
    ExampleCaptcha.Locale = "sr-Latn";
    [VB.NET]
        
    ' Set the Captcha instance Locale to Serbian Latin    
    ExampleCaptcha.Locale = "sr-Latn"

    or Locale-dependent Captcha strings can be configured on application level in the <botDetect> Web.config configuration section:

    <botDetect locale="sr-Latn" 
  • In Java applications, you can use either the application web.xml configuration file setting:
    <context-param>
      <param-name>BDC_locale</param-name>
      <param-value>sr-Latn</param-value>
    </context-param>
    
    or the Captcha object instance-specific value:
    exampleCaptcha.setLocale("sr-Latn"); 
    
    or Standard / Facelets JSF Captcha Tag page source:
    <botDetect:jsfCaptcha id="exampleCaptcha" locale="sr-Latn"
    
    or JSP Captcha Tag page source:
    <botDetect:captcha id="exampleCaptcha" locale="sr-Latn"
    
  • 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 Serbian Latin
    BotDetect.Locale = "sr-Latn"
    or the Captcha object instance-specific value:
    <%
      Dim ExampleCaptcha : Set ExampleCaptcha = (New Captcha)("ExampleCaptcha")
      ExampleCaptcha.UserInputID = "CaptchaCode"
      ' Set the Captcha object instance Locale to Serbian Latin
      ExampleCaptcha.Locale = "sr-Latn"
      Response.Write ExampleCaptcha.Html
    %>
  • In PHP applications, you can use either the application-global setting in the lib/botdetect/CaptchaConfigDefaults.php file:
    // Set the default Locale for all Captcha instances in the 
    // PHP application to Serbian Latin
    $BDC_CaptchaConfig->Locale = 'sr-Latn';
    or the Captcha object instance-specific value:
    <?php 
      $ExampleCaptcha = new Captcha("ExampleCaptcha");
      $ExampleCaptcha->UserInputID = "CaptchaCode";
      // Set the Captcha object instance Locale to Serbian Latin
      $ExampleCaptcha->Locale = 'sr-Latn';
      echo $ExampleCaptcha->Html(); 
    ?>

Serbian Localized Audio CAPTCHA Sounds

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

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

  • ASP.NET applications use Bin\BotDetectSounds by default. A custom folder can be specified in the <botDetect> configuration section.
  • Java applications use WEB-INF\BotDetectSounds by default. A custom folder can be specified in the web.xml configuration file setting.
  • 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.
  • PHP applications always use lib/botdetect/Resources/Sounds.

Serbian Localized CAPTCHA Codes

The sr-Latn Captcha locale uses the default Latin character set, consisting of 26 characters without the Q,W,X,Y characters, for a total of 22 alpha characters.

CodeStyle.Alpha Serbian CAPTCHA Characters
Unicode code point Name Character
0x0041 a A
0x0042 be B
0x0043 ce C
0x0044 de D
0x0045 e E
0x0046 fe F (not used)
0x0047 ge G (not used)
0x0048 ha H
0x0049 i I (not used)
0x004A je J
0x004B ka K
0x004C le L (not used)
0x004D me M
0x004E ne N
0x004F o O
0x0050 pe P
0x0052 re R
0x0053 se S
0x0054 te T
0x0055 u U
0x0056 ve V
0x005A ze Z
CodeStyle.Numeric Serbian CAPTCHA Characters
Unicode code point Name Character
0x0030 nula 0
0x0031 jedan 1
0x0032 dva 2
0x0033 tri 3
0x0034 četiri 4
0x0035 pet 5
0x0036 šest 6
0x0037 sedam 7 (not used)
0x0038 osam 8
0x0039 devet 9
CodeStyle.Alphanumeric Serbian CAPTCHA Characters
Unicode code point Name Character
0x0041 a A
0x0042 be B
0x0043 ce C
0x0044 de D
0x0045 e E
0x0046 fe F (not used)
0x0047 ge G (not used)
0x0048 ha H
0x0049 i I (not used)
0x004A je J
0x004B ka K
0x004C le L (not used)
0x004D me M
0x004E ne N
0x004F o O (not used)
0x0050 pe P
0x0052 re R
0x0053 se S
0x0054 te T
0x0055 u U
0x0056 ve V
0x005A ze Z (not used)
0x0030 nula 0 (not used)
0x0031 jedan 1 (not used)
0x0032 dva 2 (not used)
0x0033 tri 3
0x0034 četiri 4
0x0035 pet 5
0x0036 šest 6
0x0037 sedam 7 (not used)
0x0038 osam 8
0x0039 devet 9

Current BotDetect Versions