# vtkCaptionRepresentation does not support Chinese

**URL:** https://discourse.vtk.org/t/vtkcaptionrepresentation-does-not-support-chinese/11255
**Category:** Support
**Created:** [April 19, 2023, 12:42pm UTC](https://discourse.vtk.org/t/vtkcaptionrepresentation-does-not-support-chinese/11255 "2023-04-19T12:42:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mmXIO](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mmxio/32/6128_2.png) [@mmXIO](https://discourse.vtk.org/u/mmXIO)
#### Post date: [April 19, 2023, 12:42pm UTC](https://discourse.vtk.org/t/vtkcaptionrepresentation-does-not-support-chinese/11255/1 "2023-04-19T12:42:46Z")

</div>

![E3SI0T)NNMEEC$N)86KKG4](https://discourse.vtk.org/uploads/default/original/2X/f/fe19a3f5e9e4d36091e7c7a7e7e31fc2e677201d.png)  
When I pass in the Chinese parameter in SetCaption, the running result does not show my Chinese, is it not supported in UTF-8 format? Is there any good workaround?

---

<div class="post-metadata">

### Author: ![w7v](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/w/e47774/32.png) [@w7v](https://discourse.vtk.org/u/w7v)
#### Post date: [April 20, 2023, 1:31am UTC](https://discourse.vtk.org/t/vtkcaptionrepresentation-does-not-support-chinese/11255/2 "2023-04-20T01:31:34Z")

</div>

虽然没遇到这个问题，但是在开发中应该尽量避免中文使用。

---

<div class="post-metadata">

### Author: ![mmXIO](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mmxio/32/6128_2.png) [@mmXIO](https://discourse.vtk.org/u/mmXIO)
#### Post date: [April 20, 2023, 11:15am UTC](https://discourse.vtk.org/t/vtkcaptionrepresentation-does-not-support-chinese/11255/3 "2023-04-20T11:15:08Z")

</div>

哈哈，碰到国人很开心，😀。但是还是想让它输入中文 🤔

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [April 24, 2023, 3:35am UTC](https://discourse.vtk.org/t/vtkcaptionrepresentation-does-not-support-chinese/11255/4 "2023-04-24T03:35:31Z")

</div>

It’s probably more that the font doesn’t support Chinese characters. Does it work better if you use a font that isn’t one of VTK’s built-in ones (I don’t know how to do this myself, only that it should be possible)?
