Unknown charset for system locale

This is a fresh install (ver 2.2.2) on a windows pc, being used to test the software.  

No matter what charset I set the database to, I [u]ALWAYS[/u] get the following when accessing the admin panel

[i]Notice: Unknown charset for system locale (en_US.utf8) in ~/includes/library/lib_language.inc.php (Line 297)[/i]

I did not select that char set "en_US.utf8" during installation and .... regardless of what I set it to (either in phpadmin, or Languages/Storage Encloding), the admin panel always gives the exact same error of:

[i]Notice: Unknown charset for system locale (en_US.utf8) in ~/includes/library/lib_language.inc.php (Line 297)[/i]

I guess I could disable the NOTICES in php.ini but I would rather fix the issue.

Any help would be appreciated.

-pat-

tim

Hmm.. you say you are on windows but your error message refers to a Linux locale.

Before I start debugging. Make sure you have a good understanding of locales here:
https://wiki.litecart.net/system_locale

Thank you for replying:

I am definitely on a windows 10 server - It's my local development pc - Once developed or tested, I move it to a remote host (either A2Hosting  or InMotion) - I setup a apache webserver using AMPPS, php 7.18, Server version: 5.6.37 - MySQL Community Server (GPL)

Like I mentioned earlier.... I can go in to phpmyadmin, change the Collation to anything, and the error message remains the same.

Ditto with changing via admin Language/Storage Encoding - changing it to anything always produces the exact same message.

It's a localhost so unless we use something like TeamViewer (which I have no problem doing), you won't be able to view the issue.

fyi: I installed Litecart by downloading from here, then unzipping, then using phpadmin to create the db, then running the install.

Question: What part of the message makes you say that it is a Linux locale?

-pat-

I will try and attached three screenshots.

Lite1.png - shows the error messages:
[i]Notice: Unknown charset for system locale (en_US.utf8) in ~/includes/library/lib_language.inc.php (Line 297)[/i]

Lite2.png shows where I changed the charset to latin1_general_ci

Lite3.png shows the reload after making the change to lati11_general_ci - you'll notice, it still has the exact same error message:
[i]Notice: Unknown charset for system locale (en_US.utf8) in ~/includes/library/lib_language.inc.php (Line 297)[/i]

btw: I deleted everything and reinstalled the 2.2.3 version - the screen shots are from that version - the only dif in 2.2.2 is the line number of the issue

tim

Set the right locale in Admin -> Languages -> Edit Language. Try en-US or english on Windows.
Again, read the article. https://wiki.litecart.net/system_locale

I was trying to change it in the wrong place.  I was not editing the Language, I was editing the Storage Encoding.

I have it working now with english_United States
en-US and en_us both produced the same error

Looks like we are all good now.  Thank you for the support

tim

Oh super great! You are making progress now :)

Hi

I have a similar error on 2.3.1, but I get this error code:

No predefined charset mapped for Windows locale sv_SE.utf8. Attempting automatic detection instead. in ~/includes/library/lib_language.inc.php (Line 313)

Running an Windows machine.

Yes I did, but either I'm too stupid or it does not work ;)

tim

You said Windows. Did you try sv-SE, sve_swe, or swedish_Sweden?

I was an idiot, and didnt understand I should try each of them in the system box.

thanks Tim!

Acest thread a fost închis din cauza inactivității îndelungate. Postarea pe acesta nu mai este posibilă.
View code on GitHub