Comments (25)
Hello,
if I recall correctly, this should be a server configuration problem, not a bug in the STFC code.
I've made a test on the following machine:
- CentOS 6.6
- Apache 2.2.15
- mySQL 5.6.21
- PHP 5.4.34
and you can see the result:
I'll made some other test on the other machine.
from ui.
Hi
have you set in apache2 a default charset?
from ui.
Hi,
I'm using the default Apache configuration that comes with CentOS 6.6, however searching for charset in /etc/httpd/conf/httpd.conf I've found this directive:
AddDefaultCharset UTF-8
from ui.
Hi
i set now in /etc/apache2/conf.d/charset the default to UTF-8
And is working.
from ui.
Hi
after the fix i have som fault displayed portal news.
from ui.
Hmmm, this could be an issue of the support center code.
However, it's the only point where umlauts aren't displayed correctly?
Please check everywhere in the game (messages, ships, auction and so on), so we can address the bug completely.
from ui.
Ok i do it.
from ui.
Hi
I see only in messages and shoutbox this problem.
On logs and others is all ok.
from ui.
The shoutbox wasn't ok after you changed apache config?
from ui.
On test with adddefaultcharset both are working. messages and shoutbox.
but portals news, logs any many others have then problems.
from ui.
Hmm, I think the "bug" isn't in the shoutbox but in the other part of the code. Charset should be UTF-8, it's almost the standard now.
Update, this is hard to reproduce, on my machine:
- CentOS 6.6
- Apache 2.2.15
- PHP 5.5.19
- mySQL 5.6.22
everything works fine. I've tested characters with umlauts on:
- headquarter
- spacedock
- trade center
- fleets
- alliance (found another bug with mySQL 5.5+ here)
- messages
- settings
- portal news
- portal shoutbox
without any problems.
from ui.
Is a strange thig.
I found in a lot of files in meta charset iso
but i look deeper in to it after all other stuff is full working.
from ui.
Do you mean in the HTML code generated by the game?
Let me know if changing it could solve the issue.
from ui.
You can see it on UI/index.php line 104.
and many others have this setting.
I make some work to track down this problem.
but not the highest prioriti in the mom.
feedback will come...
from ui.
Hello,
I see, maybe it should be changed to UTF-8?
Besides I've found a couple a lines below another little bug, content language should be variable depending upon the language detected by the browser.
from ui.
Nice Picture!
from ui.
Hello,
which race does show that characters?
from ui.
Hi
Race are federation
Ui lang is german.
from ui.
Hello,
Federation? I was pretty sure all the umlauts where translated with the corresponding HTML code.
Update: I've made some research, I was remembering correctly: umlauts in federation race are all translated into HTML code. There is for sure a bug between lines 458-497 in module researchlabs.PHP when it try to truncate names longer then 18 chars.
from ui.
Hello,
I should have found a solution, try to change line 465 in researchlabs.php from:
$compname=substr($tmp,0,16);
to:
$compname=htmlentities(substr($tmp,0,16));
It should works as expected, let me know if it works for you.
from ui.
Hi
i found the way to use umlauts.
On a open php5 system with no default charset config, php use the charset from the php files.
so we have to change all the settings in the php files to utf-8 or set in php.ini to default utf-8.
from ui.
Hi,
If you're running only STFC, probably the second solution is the easier. :) However I think umlauts should be translated in HTML counterparts.
from ui.
Hi
yes i using the php.ini way. but i look in to it to change the meta of the files to utf-8 if i have time...
from ui.
OK,
let me know any further development.
from ui.
Hello @Caberhagen can we consider closed this issue?
Thank you.
from ui.
Related Issues (20)
- Sensor page somtimes not work HOT 4
- Direct use of MySQL functions HOT 1
- Wrong special chars handling in research labs HOT 2
- HTML5 migration
- The "message" function may be called indirectly by the Scheduler.
- Potiential bug at safetytrups on planets. HOT 3
- Needing german translation HOT 2
- Wrong Description for Static Components HOT 8
- Special signs at bottom HOT 24
- Help Pages HOT 12
- Mines panel can display wrong number of workers
- Shiptemplates actual master branch HOT 6
- I need a hint at donation page. HOT 2
- Define admin mail at config.inc.php HOT 2
- Some parts to translate HOT 1
- logbook.sprache.php HOT 3
- Problem to build structure. HOT 4
- Development status from Kail
- Build multipe Ships HOT 1
- Up to date Version HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui.