Python Forum

Full Version: print Vietnamese str in python 3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
what is the problem
>>> print("Tôi là người việt nam")
Tôi là người việt nam
[attachment=738]
(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 ?
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.
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. 您好,我叫安德烈。 שלום, שמי אנדרה. Здравствуйте, меня зовут Андре. مرحبا ، اسمي اندريه
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.
Thanks you all of you!

I have fixed this issue