# Python non ascii char

**URL:** <https://discourse.slicer.org/t/python-non-ascii-char/7070>\
**Category:** Development\
**Created:** [June 7, 2019, 2:08pm UTC](https://discourse.slicer.org/t/python-non-ascii-char/7070 "2019-06-07T14:08:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr.wyr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mr.wyr/32/3347_2.png) [@Mr.wyr](https://discourse.slicer.org/u/Mr.wyr)\
**Post date:** [June 7, 2019, 2:08pm UTC](https://discourse.slicer.org/t/python-non-ascii-char/7070/1 "2019-06-07T14:08:06Z")

</div>

how can i use chinese in python character, i add #coding:utf-8 in top, but it’s not work

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 7, 2019, 4:47pm UTC](https://discourse.slicer.org/t/python-non-ascii-char/7070/2 "2019-06-07T16:47:25Z")

</div>

Unicode support in Slicer is limited. It is supported at Python and Qt level, so it is possible to display Unicode characters to the users.

See these pages for details:

- [Slicer Internationalization](https://discourse.slicer.org/t/slicer-internationalization/579)
- [https://projectweek.na-mic.org/PW30\_2019\_GranCanaria/Projects/UltrasoundSimulatorTraining/](https://projectweek.na-mic.org/PW30_2019_GranCanaria/Projects/UltrasoundSimulatorTraining/) (see “Background and references” section for source code of a multi-language module)

---

<div class="post-metadata">

**Author:** ![Mr.wyr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mr.wyr/32/3347_2.png) [@Mr.wyr](https://discourse.slicer.org/u/Mr.wyr)\
**Post date:** [June 8, 2019, 1:34am UTC](https://discourse.slicer.org/t/python-non-ascii-char/7070/3 "2019-06-08T01:34:01Z")

</div>

I know Slicer internationalization,but it’s incomplete,i would like to translate SegmentEditorThresholdEffect.py，in SegmentEditorThresholdEffect.py, for example line 121, qt.QLabel(“Threshold Range:”), i would like to translate “Threshold Range” to chinese

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [June 8, 2019, 9:56pm UTC](https://discourse.slicer.org/t/python-non-ascii-char/7070/4 "2019-06-08T21:56:13Z")

</div>

> [@Mr.wyr](#):
>
> Slicer internationalization,but it’s incomplete

We have plan to work on improving the support for i18n during the upcoming [project week in Boston](https://projectweek.na-mic.org/PW31_2019_Boston/#infrastructure), that said if you can allocate some resources to support this work I suggest you look at the [commercial partners](https://www.slicer.org/wiki/CommercialUse#Commercial_Partners).
