# How to show chinese characters in vtk widget

**URL:** <https://discourse.slicer.org/t/how-to-show-chinese-characters-in-vtk-widget/19305>\
**Category:** Development\
**Tags:** python\
**Created:** [August 23, 2021, 7:17am UTC](https://discourse.slicer.org/t/how-to-show-chinese-characters-in-vtk-widget/19305 "2021-08-23T07:17:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wycstar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/wycstar/32/11800_2.png) [@wycstar](https://discourse.slicer.org/u/wycstar)\
**Post date:** [August 23, 2021, 7:17am UTC](https://discourse.slicer.org/t/how-to-show-chinese-characters-in-vtk-widget/19305/1 "2021-08-23T07:17:17Z")

</div>

i want to show chinese characters in 3d view widget using this code

```auto
view.cornerAnnotation().SetText(vtk.vtkCornerAnnotation.UpperRight,"Something")

```

but can only show ascii characters, the non ascii part is missing

---

<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:** [August 23, 2021, 1:50pm UTC](https://discourse.slicer.org/t/how-to-show-chinese-characters-in-vtk-widget/19305/2 "2021-08-23T13:50:11Z")

</div>

You need to choose a font that has Chinese characters. See a complete example here: [https://github.com/liwind/VTK-Chinese-Font](https://github.com/liwind/VTK-Chinese-Font)
