# TextEditor input encoding

**URL:** <https://forum.juce.com/t/texteditor-input-encoding/63813>\
**Category:** Windows\
**Created:** [October 15, 2024, 12:49pm UTC](https://forum.juce.com/t/texteditor-input-encoding/63813 "2024-10-15T12:49:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjokipii](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@mjokipii](https://forum.juce.com/u/mjokipii)\
**Post date:** [October 15, 2024, 12:49pm UTC](https://forum.juce.com/t/texteditor-input-encoding/63813/1 "2024-10-15T12:49:02Z")

</div>

Hello,

I have a `Label` that spawns a `TextEditor` when clicked. The input is used to rename a project i.e. a bunch of files and directories. However the filenames are incorrect or corrupt if i input non ASCII i.e. scandinavian characters, such as åäö. This works fine on MacOS, but on Windows i believe there’s a text encoding problem somewhere on the pipeline.

I believe my Windows uses non UTF8 character set natively, CP-something.

Which encoding does the `TextEditor` input? Is the text from `TextEditor` in the OS native encoding?

Which encoding should the `File` methods have? Should this be in the OS native encoding?

Any ideas for a simple solution? Simple conversion at the right place perhaps?

I’m on JUCE 7.0.7

---

<div class="post-metadata">

**Author:** ![Mrugalla](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mrugalla/32/13092_2.png) [@Mrugalla](https://forum.juce.com/u/Mrugalla)\
**Post date:** [October 1, 2025, 9:52am UTC](https://forum.juce.com/t/texteditor-input-encoding/63813/2 "2025-10-01T09:52:34Z")

</div>

the projucer has a tool that can convert any character to something juce::String can interpret. you could manually code a hack that manipulates the text like that, but i agree it would make more sense if texteditor did that automatically
