This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Langage | Format | Mécanisme de fallback | Utilisation des codes ISO | ||
|---|---|---|---|---|---|
| Java | ResourceBundle | Oui | Oui | ||
| .Net | Fichiers Resx | Oui | Oui | ||
| PHP (*) | ICU depuis la 5.3.0 ou Tableau ou PO (**) | Oui pour ICU et PO - Non pour les tableaux | Oui pour ICU et PO - Non pour les tableaux | ||
| Python | PO (**) | Oui | Oui | ||
| C++ | PO (**) | Oui | Oui |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require_once 'langs/'.$lang.'.php'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo $myTransations[‘string1’]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? header('Content-Type: text/html; charset=utf-8'); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DateFormat df = DateFormat.getDateInstance(); | |
| myDate = df.parse(myString); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NumberFormat nf = NumberFormat.getCurrencyInstance(); | |
| nf.format(1234.56); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NumberFormat nf = NumberFormat.getInstance(); // pour utiliser la Locale courante | |
| ou | |
| NumberFormat nf = NumberFormat.getInstance(Locale.FRENCH); // pour spécifier une Locale | |
| myNumber = nf.parse(myString); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import MySQLdb | |
| db = MySQLdb.connect(host=DB_HOST ,user=DB_USER ,passwd=DB_PASS,db=DB_NAME, charset = "utf8", use_unicode = True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql_connect("serveur","login","pass"); | |
| mysql_select_db("myDbUtf8"); | |
| mysql_query("SET NAMES 'utf8'"); |
NewerOlder