Hi all, I'm from China and recently I am studying turbogears.Hope this will help people from countries where people don't speak English. And hope u can point out my mistakes.
Each mail while be short, but I will keep replying to this thread frequently. TIP 1. ~~~~ Use only utf-8 in kid files. Kid can not process anything other than that. TIP 2. ~~~~ If a column might contains non utf-8 characters, define it like this in model.py UnicodeCol(dbEncoding = "gb2312") TIP 3. ~~~~ You want to use standard widgets but you found it doesn't work with Chinese! Than you should 1. add this at the top of your code # -*- coding: utf-8 -*- 2. convert your source file to utf-8 3. And then add a u before any string that contains Chinese Character. BTW: The third one is a must! TIP 4. ~~~~ Something interesting. If u have ever tried the 20 minutes wiki tutorial, run it and type something like this in your browser's address box. http://localhost:8080/一些中文字符 Press Enter. As the page does not exist, you will reach the edit Page. Input some text and then save. Oops! Something wrong happened but if you check the database you will see a new page has been added. This might be a bug, I will see if I have time to fix it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

