# How-to: use UTF-8 characters with Navigation Cube

**URL:** <https://forum.techsoft3d.com/t/how-to-use-utf-8-characters-with-navigation-cube/1398>\
**Category:** HOOPS Visualize Desktop\
**Tags:** code, learn, knowledge-base, how-to\
**Created:** [July 23, 2021, 4:00am UTC](https://forum.techsoft3d.com/t/how-to-use-utf-8-characters-with-navigation-cube/1398 "2021-07-23T04:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel.peragine](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/gabriel.peragine/32/1535_2.png) [@gabriel.peragine](https://forum.techsoft3d.com/u/gabriel.peragine)\
**Post date:** [July 23, 2021, 4:00am UTC](https://forum.techsoft3d.com/t/how-to-use-utf-8-characters-with-navigation-cube/1398/1 "2021-07-23T04:00:00Z")

</div>

In this article we detail how to replace the HOOPS Visualize Navigation Cube labels with UTF-8 characters. This will be useful to write labels in Cyrillic, Chinese, Japanese, Korean or to use any other wide size characters.

## Make sure the source code file is encoded to UTF-8 without BOM

- Any advanced text editor, such as Notepad++ will let you save a file with the desired encoding.
- Example:
  - In Notepad++ go to Encoding menu
  - Select UTF-8
  - Save the file

 ![image-20210430-085651](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/946f42a6801b6da585d1991bf51941d276754f92.png)

Make sure to select UTF-8 without BOM. Depending on the software it may be called by other name:

- UTF-8
- UTF-8 sans BOM
- UTF-8 without BOM

## Identify a fond in the system corresponding to the language you want to use

You will need to set the font for the Navigation Cube to display correctly the labels.

Here is a list of default UTF-8 Windows font: [![](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/a956a030e2721f9a2383076a7b61d9e911420d37.png)Typography in Windows apps - Windows apps](https://docs.microsoft.com/en-us/windows/uwp/design/style/typography#fonts-for-non-latin-languages)

## Use the NavigationCubeControl to customize the cube

Code snippet example

- Replacing labels with Korean characters.
- Malgun Gothic is user-interface font for Korean.

```auto
GetCanvas().GetFrontView().GetNavigationCubeControl().SetText(
		"안녕 ", "안녕 ", "안녕 ",
		 "안녕 ", "안녕 ", "안녕 ",
		 TextAttributeKit().SetFont("Malgun Gothic"));

```

 ![image-20210430-090443](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/c0e8a3889728a6eaa0408a030ac01346553d2911.png)
