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
    
  
  
    
  | unicodeString = u"hello Unicode world!" | 
  
    
      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
    
  
  
    
  | $utf8key = utf8_encode($key); | |
| ... | |
| $len = mb_strlen($utf8key, 'utf-8'); | |
| ou | |
| $len = mb_strlen($utf8key); // si l’encodage a été correctement paramétré pour le module mbstring | 
  
    
      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
    
  
  
    
  | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
| ou en HTML5 | |
| <meta 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
    
  
  
    
  | <p dir="LTR">שלם</p> | |
| <p dir="RTL">שלם</p> | 
  
    
      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
    
  
  
    
  | jdbc:mysql://localhost/some_db?useUnicode=yes&characterEncoding=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
    
  
  
    
  | mysql_connect("serveur","login","pass"); | |
| mysql_select_db("myDbUtf8"); | |
| mysql_query("SET NAMES 'utf8'"); | 
  
    
      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
    
  
  
    
  | 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
    
  
  
    
  | 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
    
  
  
    
  | DateFormat df = DateFormat.getDateInstance(); | |
| myDate = df.parse(myString); |