WebFaction
Community site: login faq

Hi, i've taken all the necessary steps to change the locale in the PHP environment. Using strftime proofs the setting is accurate, i.e. 'Wednesday' becomes 'woensdag' ( NL_nl )

Throughout the tests i am using $current = setlocale(LC_ALL, ['nl_NL.UTF-8', 'nl_NL']);

In fact i'm only looking for LC_CTYPE to work. The dutch locale should allow for the following charset ( http://demo.icu-project.org/icu-bin/locexp?_=nl&SHOWExemplarCharacters=1#ExemplarCharacters ) "abcdefghijklmnopqrstuvwxyzáäéëíïóöúü"

However, within the changed locale, only a-z return true in the ctype_alpha/alnum/etc. It's the same result when the locale is set to for example french ( FR_fr ). Also here the strftime returns correct.

What am i missing in order to get the ctype's to behave according to locale setting?

asked 26 Oct '16, 08:08

merten
112
accept rate: 0%

I know you said that strftime seems to work with your setting, but could you try this setting instead?

$current = setlocale(LC_ALL ,'nl_NL');

Also, could you please update your question to include the code that you're using to test this?

(26 Oct '16, 21:41) seanf
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×5
×1
×1

question asked: 26 Oct '16, 08:08

question was seen: 1,478 times

last updated: 26 Oct '16, 21:41

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM