# Windows rendering issues

**URL:** https://discourse.vtk.org/t/windows-rendering-issues/2542
**Category:** Development
**Created:** [February 4, 2020, 5:38pm UTC](https://discourse.vtk.org/t/windows-rendering-issues/2542 "2020-02-04T17:38:42Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![toddy](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@toddy](https://discourse.vtk.org/u/toddy)
#### Post date: [February 19, 2020, 12:19am UTC](https://discourse.vtk.org/t/windows-rendering-issues/2542/13 "2020-02-19T00:19:35Z")

</div>

Actually you can’t pass a byte array to the `SetCaption()` method, so that won’t work either.

I’ve looked at the java wrapper code now and there is a bug converting a java String to C++ char\* due to the JVM `Charset.defaultCharset()` setting. On Mac/Linux it defaults to UTF-8, whereas on Windows it depends on the locale. That is the reason you’re seeing correct rendering on Mac/Linux.

The conversion to UTF-8 needs to be handled explicity in VTK. I will push a MR for the fix to the master branch shortly.

---

_[View the full topic](https://discourse.vtk.org/t/windows-rendering-issues/2542)._
