#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    5
    Rep Power
    0

    Have error while using pyramid python


    I try print unicode on python
    First, i have a project pyramid
    I created a file name hello.py
    PHP Code:
    # -*- coding: utf-8 -*-
     
    print "Hy đợi đấy" 
    When i run this file as python test the result : "Hy đợi đấy"
    That ok.
    But when i run project. The result : Hãy đợi đấy
    I think the problem on development.ini. I try to add
    PHP Code:
    # -*- coding: utf-8 -*- 
    But it doesn't work
    How can i print unicode on my pyramid project
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Posts
    611
    Rep Power
    65
    Perhaps
    http://www.python.org/dev/peps/pep-0263/
    will help

    Actually
    Code:
    # -*- coding: utf-8 -*- 
     print "Hy đợi đấy"
    works well on the Eric5 IDE. Other IDEs fail miserably.
    Last edited by Dietrich; December 13th, 2012 at 12:34 PM.
    Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    5
    Rep Power
    0
    Yesh, if i run only file, not all project, the String can be display right
    But when i run project the string wrong.
    Using pyramid so hard
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    5
    Rep Power
    0
    Somebody help !!!
    Pyramid so hard

IMN logo majestic logo threadwatch logo seochat tools logo