# Characterset Problem?

**URL:** <https://forum.phpvms.net/t/characterset-problem/2560>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [May 1, 2010, 6:21am UTC](https://forum.phpvms.net/t/characterset-problem/2560 "2010-05-01T06:21:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![CrashGordon](https://forum.phpvms.net/user_avatar/forum.phpvms.net/crashgordon/32/34_2.png) [@CrashGordon](https://forum.phpvms.net/u/CrashGordon)\
**Post date:** [May 1, 2010, 6:21am UTC](https://forum.phpvms.net/t/characterset-problem/2560/1 "2010-05-01T06:21:59Z")

</div>

Before 2.1.930, I was able to desplay a number of different languages. With .930 and .934, I can’t.

For example, this used to be Greek.

Â¸ÃŽÂ½ÃŽÂ¹ÃŽÂºÃŽÂ® ÃŽÂ¥Ãâ‚¬ÃŽÂ·ÃÂÃŽÂµÃÆ’ÃŽÂ¯ÃŽÂ± ÃŽ ÃŽÂ»ÃŽÂ·ÃÂÃŽÂ¿Ãâ€&nbsp;ÃŽÂ¿ÃÂÃŽÂ¹ÃÅ½ÃŽÂ½

What happened?

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [May 1, 2010, 4:00pm UTC](https://forum.phpvms.net/t/characterset-problem/2560/2 "2010-05-01T16:00:07Z")

</div>

Where? Need some more details

---

<div class="post-metadata">

**Author:** ![CrashGordon](https://forum.phpvms.net/user_avatar/forum.phpvms.net/crashgordon/32/34_2.png) [@CrashGordon](https://forum.phpvms.net/u/CrashGordon)\
**Post date:** [May 1, 2010, 4:33pm UTC](https://forum.phpvms.net/t/characterset-problem/2560/3 "2010-05-01T16:33:59Z")

</div>

I lifted that from the pull down menu of a custom field in the pirep form.

But this is what the name of SBGL looks like in pilots.

Rio de Janeiro-GaleÃƒÂ£o International Airport

There are certain characters that seem to get mangled.

By any chance were the new skins modified to be font-specific (or a different font from pre-930)?

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [May 1, 2010, 6:06pm UTC](https://forum.phpvms.net/t/characterset-problem/2560/4 "2010-05-01T18:06:13Z")

</div>

> I lifted that from the pull down menu of a custom field in the pirep form.
> 
> But this is what the name of SBGL looks like in pilots.
> 
> Rio de Janeiro-GaleÃƒÂ£o International Airport
> 
> There are certain characters that seem to get mangled.
> 
> By any chance were the new skins modified to be font-specific (or a different font from pre-930)?

Nothing from 930, there was a change made in the main 2.1 release for 924 I believe, which just instructs MySQL to accept different charsets. But no other changes having to do with that. Maybe your browser’s charset changed?

---

<div class="post-metadata">

**Author:** ![CrashGordon](https://forum.phpvms.net/user_avatar/forum.phpvms.net/crashgordon/32/34_2.png) [@CrashGordon](https://forum.phpvms.net/u/CrashGordon)\
**Post date:** [May 1, 2010, 7:21pm UTC](https://forum.phpvms.net/t/characterset-problem/2560/5 "2010-05-01T19:21:14Z")

</div>

> Nothing from 930, there was a change made in the main 2.1 release for 924 I believe, which just instructs MySQL to accept different charsets. But no other changes having to do with that. Maybe your browser’s charset changed?

Don’t think so, but I’ll ask one of my pilots to confirm if he sees the same thing.

I used a different browser with the same results.

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [May 1, 2010, 8:24pm UTC](https://forum.phpvms.net/t/characterset-problem/2560/6 "2010-05-01T20:24:45Z")

</div>

Is there a character encoding meta tag in your template?

---

<div class="post-metadata">

**Author:** ![CrashGordon](https://forum.phpvms.net/user_avatar/forum.phpvms.net/crashgordon/32/34_2.png) [@CrashGordon](https://forum.phpvms.net/u/CrashGordon)\
**Post date:** [May 1, 2010, 9:02pm UTC](https://forum.phpvms.net/t/characterset-problem/2560/7 "2010-05-01T21:02:40Z")

</div>

> Is there a character encoding meta tag in your template?

I found this in my local.config.php

# Page encoding options

Config::Set(‘PAGE\_ENCODING’, ‘ISO-8859-1’);

On a hunch, I set it UTF-8. that cured the name of SBGL in pilots, but not in the pirep dropdown.

There are 3 occurances of ISO-8859-1 in the whole site.

Should these be changed?

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [May 1, 2010, 10:09pm UTC](https://forum.phpvms.net/t/characterset-problem/2560/8 "2010-05-01T22:09:28Z")

</div>

I’d ignore the first two - those are just the default settings which get overridden. What’s the lookup.php page?

---

<div class="post-metadata">

**Author:** ![CrashGordon](https://forum.phpvms.net/user_avatar/forum.phpvms.net/crashgordon/32/34_2.png) [@CrashGordon](https://forum.phpvms.net/u/CrashGordon)\
**Post date:** [May 2, 2010, 12:37am UTC](https://forum.phpvms.net/t/characterset-problem/2560/9 "2010-05-02T00:37:35Z")

</div>

It was ISO-8859-1. It is now UTF-8.

While rummaging around, I noticed this in app.config.php.

```
# Page encoding options
Config::Set('PAGE_ENCODING', 'UTF-8');
Config::Set('DB_CHARSET_NAME', 'utf8');

```

Since I’m ignorant about such things, I didn’t attempt to chance the second line in local.config.php, but since it is the only instance where there is no hypen in utf-8, I figured I’d ask if that is the way it should be.

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [May 2, 2010, 1:36am UTC](https://forum.phpvms.net/t/characterset-problem/2560/10 "2010-05-02T01:36:50Z")

</div>

Right, there’s no hyphen in the DB\_CHARSET\_NAME. That one’s fine. I wouldn’t mess with that one at all.

The PAGE\_ENCODING you can override in local.config but as long as that’s correct… for greek it might not be UTF-8, maybe you have to use a latin charset? I’m not sure TBH

---

<div class="post-metadata">

**Author:** ![CrashGordon](https://forum.phpvms.net/user_avatar/forum.phpvms.net/crashgordon/32/34_2.png) [@CrashGordon](https://forum.phpvms.net/u/CrashGordon)\
**Post date:** [May 2, 2010, 3:06am UTC](https://forum.phpvms.net/t/characterset-problem/2560/11 "2010-05-02T03:06:23Z")

</div>

I think I found a solution. I’ll just do everything in English. Several items in other languages added some interest, but it is not essential.

I’ve taken enough of your time with this.

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [May 2, 2010, 3:10am UTC](https://forum.phpvms.net/t/characterset-problem/2560/12 "2010-05-02T03:10:37Z")

</div>

> I think I found a solution. I’ll just do everything in English. Several items in other languages added some interest, but it is not essential.
> 
> I’ve taken enough of your time with this.

It’s not a problem. Exactly what page were you having a problem on? Just a single drop down?

---

<div class="post-metadata">

**Author:** ![CrashGordon](https://forum.phpvms.net/user_avatar/forum.phpvms.net/crashgordon/32/34_2.png) [@CrashGordon](https://forum.phpvms.net/u/CrashGordon)\
**Post date:** [May 2, 2010, 3:49am UTC](https://forum.phpvms.net/t/characterset-problem/2560/13 "2010-05-02T03:49:57Z")

</div>

The manual pirep page. I added a custom dropdown so the pilot could enter which of our clients, the flight was done for. As the clients are international, I thought it would be interesting to identify them in their own language, but French, German, Spanish, Greek and Portugese, etc., all get mangled. If I go to admin and try to edit them, they are mangled there, as well.

Here is the list from the field entries.

Select Country/Agency,Algeria DÃƒÂ©partement du Renseignement et de la SÃƒÂ©curitÃƒÂ© ,Argentina SecretarÃƒ­a de Inteligencia,Australia Australian Secret Intelligence Service,Canada Canadian Security Intelligence Service,Canada Canada Border Services Agency,Chile Agencia Nacional de Inteligencia,Egypt Al-Mukhabarat al-'Ammah,France Direction GÃƒÂ©nÃƒÂ©rale de la SÃƒÂ©curitÃƒÂ© ExtÃƒÂ©rieure,Georgia Foreign Intelligence Service,Germany Bundesamt fÃƒÂ¼r Verfas,Greece ÃŽâ€¢ÃŽÂ¸ÃŽÂ½ÃŽÂ¹ÃŽÂºÃŽÂ® ÃŽÂ¥Ãâ‚¬ÃŽÂ·ÃÂÃŽÂµÃÆ’ÃŽÂ¯ÃŽÂ± ÃŽ ÃŽÂ»ÃŽÂ·ÃÂÃŽÂ¿Ãâ€&nbsp;ÃŽÂ¿ÃÂÃŽÂ¹ÃÅ½ÃŽÂ½,Italy Agenzia Informazioni e Sicurezza Esterna,Japan Cabinet Intelligence and Research Office,Jordan DaÃ¢â‚¬â„¢irat al-Mukhabarat al-Ã¢â‚¬â„¢Ammah,Korea National Intelligence Service,Latvia Satversmes aizsardzÃ„Â«bas birojs,Lithuania Valstybes Saugumo Departamentas,Morocco Direction de la Surveillance du Territoire,New Zealand Security Intelligence Service,Poland Agencja Wywiadu,Romania External Intelligence Service,Saudi Arabia Al Mukhabarat Al A’amah,South Africa National Intelligence Agency,Spain Centro Nacional de Inteligencia,Taiwan National Security Bureau,Ukraine Holovne Upravlinnya Rozvidky,United Kingdom Secret Intelligence Service,United Kingdom Security Service,United States Central Intelligence Agency,United States Dept. of Homeland Security,Venezuela DirecciÃƒÂ³n de los Servicios de Inteligencia y PrevenciÃƒÂ³n

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [May 2, 2010, 4:25am UTC](https://forum.phpvms.net/t/characterset-problem/2560/14 "2010-05-02T04:25:59Z")

</div>

Can you zip up the template and email it to me? nabeel at nsslive dot net. I’ll take a look to see, I’m sure there’s something cooky I did

---

<div class="post-metadata">

**Author:** ![royceair](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@royceair](https://forum.phpvms.net/u/royceair)\
**Post date:** [May 11, 2010, 11:09pm UTC](https://forum.phpvms.net/t/characterset-problem/2560/15 "2010-05-11T23:09:47Z")

</div>

IÂ´ve the same problem

Today I made a completly new Beta install Version 2.1.935.

I changed the charakter set in the local.config.php to utf-8 for german Ã¶Ã¶ Ã¼Ã¼ Ã¤Ã¤ ÃŸÃŸ test.

Checked the app.config.php and it should be OK.

Checked my localhost: utf8\_general\_ci

…and the result in the News:

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [May 11, 2010, 11:59pm UTC](https://forum.phpvms.net/t/characterset-problem/2560/16 "2010-05-11T23:59:42Z")

</div>

> IÂ´ve the same problem
> 
> Today I made a completly new Beta install Version 2.1.935.
> 
> I changed the charakter set in the local.config.php to utf-8 for german Ã¶Ã¶ Ã¼Ã¼ Ã¤Ã¤ ÃŸÃŸ test.
> 
> Checked the app.config.php and it should be OK.
> 
> Checked my localhost: utf8\_general\_ci
> 
> …and the result in the News:

Which charset did you change? If you change it back to the default, what happens?

---

<div class="post-metadata">

**Author:** ![royceair](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@royceair](https://forum.phpvms.net/u/royceair)\
**Post date:** [May 12, 2010, 1:05am UTC](https://forum.phpvms.net/t/characterset-problem/2560/17 "2010-05-12T01:05:36Z")

</div>

Hi Nabeel 🙂

it is a truely new basic install with creating a new database too.

The only change I made was to modify:

local.config.php:

# Page encoding options

Config::Set(‘PAGE\_ENCODING’, ‘UTF-8’);

and the topbanner.jpg. Nothing else has happend.

I switched back to: Config::Set(‘PAGE\_ENCODING’, ‘ISO-8859-1’);

The result: (and something has swapped… 😉

After default modifying, the entries in the app.config.php are:

# Page encoding options

Config::Set(‘PAGE\_ENCODING’, ‘UTF-8’);

Config::Set(‘DB\_CHARSET\_NAME’, ‘utf8’);

Wait, I forgot…

I changed in the admin center the Date Format to d/m/Y

---

<div class="post-metadata">

**Author:** ![CrashGordon](https://forum.phpvms.net/user_avatar/forum.phpvms.net/crashgordon/32/34_2.png) [@CrashGordon](https://forum.phpvms.net/u/CrashGordon)\
**Post date:** [May 12, 2010, 3:56am UTC](https://forum.phpvms.net/t/characterset-problem/2560/18 "2010-05-12T03:56:46Z")

</div>

Since I didn’t see this problem before 2.1, I 've got to ask the question. Do the foreign characters exist in the font specified? This is an area I’ve never really looked into, sof if the question is dumb, ignore it.

---

<div class="post-metadata">

**Author:** ![royceair](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@royceair](https://forum.phpvms.net/u/royceair)\
**Post date:** [May 12, 2010, 4:41am UTC](https://forum.phpvms.net/t/characterset-problem/2560/19 "2010-05-12T04:41:27Z")

</div>

Could it be, that the font “Segoe UI” in combination with my good old WindowsXP makes these problems?

Wikipedia:

The Segoe UI font family can be obtained as part of Microsoft Office 2007 or Windows Vista. Certain Segoe fonts, but not Segoe UI, were included in Windows XP Media Center Edition 2005, replacing Trebuchet MS.

Segoe UI is installed into Windows XP if the user installs Windows Live Messenger, or Windows Live Mail, which are available as free downloads. Microsoft Word Viewer and Microsoft PowerPoint Viewer 2007 install certain Segoe fonts, but not Segoe UI.

I donÂ´t have this font in my WindowsXP.

rock on… chris

* * *

- IÂ´ve installed Segoe UI

- changed to Config::Set(‘PAGE\_ENCODING’, ‘UTF-8’);

- made several test with the problem characters - nearly all is looking good! Only the editor for the news donÂ´t work.

ItÂ´s 07:15AM good night 🙂

---

<div class="post-metadata">

**Author:** ![CrashGordon](https://forum.phpvms.net/user_avatar/forum.phpvms.net/crashgordon/32/34_2.png) [@CrashGordon](https://forum.phpvms.net/u/CrashGordon)\
**Post date:** [May 12, 2010, 12:44pm UTC](https://forum.phpvms.net/t/characterset-problem/2560/20 "2010-05-12T12:44:30Z")

</div>

I doubt it, as I encountered the problem on a Windows 7 machine.

[Next page](https://forum.phpvms.net/t/characterset-problem/2560.md?page=2)
