HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Trying to test locally on Xampp

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#67072 (In Topic #14321)
Avatar

Well-settled

Weird characters on dates

Hello,

I transfered my site files and database on a xampp installation since I want to develop a highly complicated template and I prefer to test it locally with the caches off.

Everything works fine besides one problem.

I'm getting weird characters wherever there's a date or time involved. I'm guessing this is because I'm running on a Greek locale, even though I'm having English Windows and it's trying to show dates in Greek characters.

I'm attaching a screenshot to see what I mean. I know the answer must be insanely simple but I can't figure it out. I know for sure the dates were transfered correctly and the database is running on utf-8 instead of the dreaded latin1-swedish.

Any help is appreciated. :)

Back to the top
 
Posted
Rating:
#67073
Avatar

probably just the 'charset' language string needs to be 'utf-8'.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67084
Avatar

Well-settled

Code

<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
Already is :S
Back to the top
 
Posted
Rating:
#67088
Avatar

Maybe the locale is like gk_GK.UTF-8 or something. Often locales come in pairs, the local-character-set version, and the utf version (which has some kind of suffix on it's name).

I don't have greek on my computer, but looking at Bulgarian as an example, I have these locales available to me…

bg_BG
bg_BG.CP1251
bg_BG.UTF-8


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: