# Text file handling problem on text processor developped with SWI

**URL:** <https://swi-prolog.discourse.group/t/text-file-handling-problem-on-text-processor-developped-with-swi/9419>\
**Category:** Help!\
**Created:** [December 7, 2025, 12:07am UTC](https://swi-prolog.discourse.group/t/text-file-handling-problem-on-text-processor-developped-with-swi/9419 "2025-12-07T00:07:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AQ2017](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@AQ2017](https://swi-prolog.discourse.group/u/AQ2017)\
**Post date:** [December 7, 2025, 12:07am UTC](https://swi-prolog.discourse.group/t/text-file-handling-problem-on-text-processor-developped-with-swi/9419/1 "2025-12-07T00:07:40Z")

</div>

I’m using: SWI-Prolog version 7+?

I want the code to: SWI-PROLOG fully Unicode compliant, files with filenames in non-Latin characters should open as “editable” files in text processor (developped with SWI-Prolog 7… & XPCE)

But what I’m getting is: currently, files with filenames in non-Latin characters open only as “read only” files in text processor (developped with SWI-Prolog 7… & XPCE). Is there a step overlooked, or is it a known/resolved issue?

My code looks like this: (no code provided)

```prolog
% your code here

```

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [December 7, 2025, 9:47am UTC](https://swi-prolog.discourse.group/t/text-file-handling-problem-on-text-processor-developped-with-swi/9419/2 "2025-12-07T09:47:37Z")

</div>

> [@AQ2017](#):
>
> But what I’m getting is: currently, files with filenames in non-Latin characters open only as “read only” files in text processor (developped with [SWI-Prolog](https://www.swi-prolog.org/pldoc/doc_for?object=manual) 7… & XPCE). Is there a step overlooked, or is it a known/resolved issue?

If you are using version 7 on Windows, that is your problem. Try version 10, which is just out. That should work fine. It does not (yet) properly handle Unicode characters \> 0xffff (e.g., the emoticons) in the editor when using Windows. The full Unicode range should work properly in Prolog itself and works “to some extend” in the GUI. On non-Windows platforms Unicode support covers all Unicode code points. There is an open problem in the editor with the Unicode _combining characters_.

---

<div class="post-metadata">

**Author:** ![AQ2017](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@AQ2017](https://swi-prolog.discourse.group/u/AQ2017)\
**Post date:** [December 7, 2025, 1:52pm UTC](https://swi-prolog.discourse.group/t/text-file-handling-problem-on-text-processor-developped-with-swi/9419/3 "2025-12-07T13:52:13Z")

</div>

Thank you so much for your response. Could it be an XPCE related problem?  
As suggested, I will try the latest release of SWI-Prolog.  
May I take this opportunity to thank you and your development team for your extraordinary contribution to the fascinating computing adventure, and for equipping us with such a powerful software.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [December 7, 2025, 2:40pm UTC](https://swi-prolog.discourse.group/t/text-file-handling-problem-on-text-processor-developped-with-swi/9419/4 "2025-12-07T14:40:40Z")

</div>

> [@AQ2017](#):
>
> Could it be an XPCE related problem?

Not being able to write is -if I recall correctly- a quite recently fixed issue in xpce. Since version 7 the Unicode support of the entire platform has been improved though. Mostly for Windows. For other platforms there were far fewer issues.
