Python Forum
print Vietnamese str in python 3
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print Vietnamese str in python 3
#1
Hi everyone.

I want to print and type Vietnamese string on terminal window.. but I could not printed it.

sample text : print("Tôi là người việt nam")

How to do that ?

Thanks in advance!
Reply
#2
what is the problem
>>> print("Tôi là người việt nam")
Tôi là người việt nam
   
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
(Oct-29-2019, 09:47 AM)buran Wrote: what is the problem
>>> print("Tôi là người việt nam")
Tôi là người việt nam
Hi Bro.

sorry, how to attached picture into this thread ?
Reply
#4
you still don't have privilege to attach files
copy/paste your code and the output you get, in proper tags
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#5
Python has full Unicode support.

s1 = "Xin chào, tên tôi là Andre."
s2 = "您好,我叫安德烈。"
s3 = "שלום, שמי אנדרה."
s4 = "Здравствуйте, меня зовут Андре."
s5 = "مرحبا ، اسمي اندريه."

print(s1)
print(s2)
print(s3)
print(s4)
print(s5)
I'm not sure if the strings s3 and s5 are printed from left to right.

Output:
Xin chào, tên tôi là Andre. 您好,我叫安德烈。 שלום, שמי אנדרה. Здравствуйте, меня зовут Андре. مرحبا ، اسمي اندريه
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#6
Photo 
Output:
(Oct-29-2019, 10:08 AM)buran Wrote: you still don't have privilege to attach files
copy/paste your code and the output you get, in proper tags
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.

Print("Tôi là người việt nam")
Output:
Print("Tôi là người việt nam")

(Oct-30-2019, 12:53 AM)hadoan Wrote:
Output:
[quote='buran' pid='95597' dateline='1572343700']
you still don't have privilege to attach files
copy/paste your code and the output you get, in proper tags
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.

Print("Tôi là người việt nam")

(Oct-29-2019, 10:15 AM)DeaD_EyE Wrote: Python has full Unicode support.

s1 = "Xin chào, tên tôi là Andre."
s2 = "您好,我叫安德烈。"
s3 = "שלום, שמי אנדרה."
s4 = "Здравствуйте, меня зовут Андре."
s5 = "مرحبا ، اسمي اندريه."

print(s1)
print(s2)
print(s3)
print(s4)
print(s5)
I'm not sure if the strings s3 and s5 are printed from left to right.

Output:
Xin chào, tên tôi là Andre. 您好,我叫安德烈。 שלום, שמי אנדרה. Здравствуйте, меня зовут Андре. مرحبا ، اسمي اندريه
Hi Bro

My Python version 3.7.4

When I print Vietnamese string into terminal, the string error font .

I don't know which module need to installed on my python.
Reply
#7
Thanks you all of you!

I have fixed this issue
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020