# text encoding issue ?

**URL:** <https://forum.servoy.com/t/text-encoding-issue/628>\
**Category:** Classic Servoy\
**Created:** [November 11, 2003, 6:30pm UTC](https://forum.servoy.com/t/text-encoding-issue/628 "2003-11-11T18:30:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vince\_1](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@vince\_1](https://forum.servoy.com/u/vince_1)\
**Post date:** [November 11, 2003, 6:30pm UTC](https://forum.servoy.com/t/text-encoding-issue/628/1 "2003-11-11T18:30:38Z")

</div>

Hi, I’ve a problem with text encoding.  
The source of the data is mysql  
the text is in french, it should read :

Bienvenue M-` l’Apple ex  
Prix spM-hciaux

I’m on a Mac 10.3.1 JVM 1.4.1

---

<div class="post-metadata">

**Author:** ![Jan\_Aleman](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jan\_Aleman](https://forum.servoy.com/u/Jan_Aleman)\
**Post date:** [November 11, 2003, 6:55pm UTC](https://forum.servoy.com/t/text-encoding-issue/628/2 "2003-11-11T18:55:08Z")

</div>

Are you using the correct characterset in your backend database?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/1X/363c5924e316baabbea11f046f1e2f3db64fbf70.jpeg) [@system](https://forum.servoy.com/u/system)\
**Post date:** [November 11, 2003, 9:47pm UTC](https://forum.servoy.com/t/text-encoding-issue/628/3 "2003-11-11T21:47:02Z")

</div>

Well, I don’t know what the correct charset should be.  
In fact, I can’t change the charset of the backend database, so servoy as to get it right.

where can i cahnge the charset of servoy ?

---

<div class="post-metadata">

**Author:** ![Jan\_Aleman](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jan\_Aleman](https://forum.servoy.com/u/Jan_Aleman)\
**Post date:** [November 11, 2003, 10:08pm UTC](https://forum.servoy.com/t/text-encoding-issue/628/4 "2003-11-11T22:08:52Z")

</div>

After some research I found out it’s a Mac only issue. By default Mac uses different reader and writer Java classes which cause issues with special character sets. You can solve it by launching the JVM with a special option. I’m going to discuss with our development team if and how soon we can implement this. Until then you can launch Servoy using the following method:

1. open a terminal
2. change directory to the main Servoy directory
3. Launch Servoy with the following command:

```auto
java -Dfile.encoding=8859_1 -jar servoy_developer.jar 

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/1X/363c5924e316baabbea11f046f1e2f3db64fbf70.jpeg) [@system](https://forum.servoy.com/u/system)\
**Post date:** [November 11, 2003, 11:37pm UTC](https://forum.servoy.com/t/text-encoding-issue/628/5 "2003-11-11T23:37:06Z")

</div>

GREAT, what a support, thanks.

It works, except for the euro sign. Another setting for the euro sign ?

---

<div class="post-metadata">

**Author:** ![hbrendel](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hbrendel](https://forum.servoy.com/u/hbrendel)\
**Post date:** [November 12, 2003, 9:35am UTC](https://forum.servoy.com/t/text-encoding-issue/628/6 "2003-11-12T09:35:00Z")

</div>

> jaleman:
> 
> 1. open a terminal
> 2. change directory to the main Servoy directory
> 3. Launch Servoy with the following command:
> 
> ```auto
> java -Dfile.encoding=8859_1 -jar servoy_developer.jar 
> 
> ```

Wouldn’t it be better to use Unicode? If so, how would the command be?

---

<div class="post-metadata">

**Author:** ![Jan\_Aleman](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jan\_Aleman](https://forum.servoy.com/u/Jan_Aleman)\
**Post date:** [November 12, 2003, 1:24pm UTC](https://forum.servoy.com/t/text-encoding-issue/628/7 "2003-11-12T13:24:25Z")

</div>

Java works by default in unicode, and so does Servoy. Internally everything in Servoy is in Unicode, when you go out of Servoy it depends on your database, your operating system and environment settings how the data gets out. In this case the database is in 8859\_1 encoding. You can also tell your database to store everything in Unicode but that will consume more diskspace.
