Internationalization and localization tools


Locale-Sensitive Python Method

ord(char)

Internationalization (I18n) Method Overview

Python 3: The ord function returns the number representing the Unicode value of a specified character.

print(ord("Ӓ"))

Outputs

1234

Python 2: Does not work with Unicode characters. Presumes ascii.

Click here for more information.

I18n Issues

Calling the ord function may not have any i18n issues in Python 3.

Globalyzer will detect this method and report it as an I18n issue. If you have determined that the call is being handled correctly, you can use Globalyzer's Ignore Comment functionality to ensure that it isn't picked up in a subsequent scan.

Locale-Sensitive Python Methods

Lingoport internationalization and localization services and software