First of all, I'm not a web designer, I'm a programmer, so I'm working a bit out of my knowledge area. However, as the person in my office who has some working knowledge of French, I'm stuck with this issue.
The Problem:
Sharepoint Designer is replacing all French accented characters with the � (square box or diamond-? �) character.
It doesn't appear to matter if I enter the 'é' character as alt-130 (in either design or source or as é
Everything works fine when editing, but when the file is saved and loaded into a browser, it replaces the characters. When reloading into designer, the file shows the 65533 symbol.
EDIT: More info.
I use é and save, close SP designer,
Reloading SP designer will show the é (instead of the code) in source.
Next reload will have replaced it with �
Question 1: (more important) HOW DO I STOP THIS!?
Question 2: (more interesting) Why does this happen?
Charset is iso-8859-1
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
fixed it and stopped sharepoint from modifying the source.
Try this charset :
windows-1252
For me - the solution was to change the system locale: http://windows.microsoft.com/en-us/windows/change-system-locale#1TC=windows-7
EDIT:
Now I see that the link does not work anymore,
So briefly - the solution is to change the system locale.
Related
I have one problem with charset, I need UTF-8 and ISO-8859-1.
I tried there to set up it:
(whmcs language )
but it is not working.
I tied this:
But it still show at homepage this:
Client area is working.
I just need this at homepage Ä Ö Ü ß *
I hope someone can help.
thanks
Did you try it without ISO-8859-1? After removing it you may need to re-type the strings again. UTF-8 should work, we use it with Arabic and it is perfect.
Check database and tables, they should be UTF-8 as well, and there are tools to convert tables to UTF-8. check this script:
https://gist.github.com/wesamly/2c994e6bd4466151b60b
Note: Backup your database before converting.
On my local server, a certain page content displays this character : “ (quotation mark). But exactly the same page on my online server displays : ? (question mark). How can I fix that ?
Make sure that either the server is sending the encoding or you have a meta tag in the <head> section as described here: http://www.w3.org/TR/html4/charset.html (or both).
I built an app, I add articles, I view articles, everything is fine on that side of things.
However, I've been setting up sending the articles via email and I came up against encoding issues. In particular the £ character, it would always create an error.
My database is set to UTF-8 Unicode and my Rails app has config.encoding = "utf-8" set.
However, I discovered this:
> Article.first.title.encoding.name
=> "ASCII-8BIT"
In the end I did a workaround to the get the emails to work (article.title.force_encoding("utf-8").gsub(/\xC2\xA3/, "£")) but it feels a bit like a hack to me.
Is there something I've missed? Some other setting I haven't taken into account? How do I set up encoding in Rails 3 correctly?
If you're adding these articles yourself (i.e. they're not coming from somewhere else, like a scraper), and you're getting this error, it sounds like your browser is sending the wrong encoding to the app. Try adding <meta charset="utf-8"> to the <head> of your document.
I have a site that is replicated in many languages. The site itself display characters correctly but when viewing source the meta tags show the "unknown character" question mark instead of the foreign character.
What do I need to do differently for meta tags?
I have this tag already:
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
I changed the charset to iso-8859-1 and it works now.
Then it means that you have saved the file as ISO-8859-1 (or possibly as CP-1252 when on windows) instead of UTF-8. In a bit decent text editor / IDE you should be able to configure the default file encoding and/or use the Save As option to set the desired encoding. Also, don't forget to set the HTTP response headers accordingly. How to do this depends on the webserver used and/or the server side language in question (if any).
By the way, you really don't want to use ISO-8859-1 when you want to go for World Domination. It doesn't cover all characters the world is aware of. It only covers Latin, not Hebrew, Cyrillic, Arabic, Chinese/Korean/Japanese, etc..etc..
The character encoding starts to irritate me.
It took me a while to get everything from the DB in the right encoding on the screen, but with help from the i18n helper, this worked out.
Now I only have one more problem: saving text...
If i add some letters with accents (eg é ç ...) in a text field and want to save it, already in my controller it show as some exotic combination of characters.
Could someone tell me why this is and how I can fix this.
Everything is in UTF-8 btw
Thanks!
//Edit:
When I save the form, this is my log output
Parameters: {"free_text"=>"test 1 2 é",
And everything is capable of UTF-8...
Can you illustrate your output?
Let me guess your situation.
Supposed that you log those characters in controller in log/development.log or production.log.
If you view that log in terminal, you should ensure your terminal is capable to show UTF-8, with appropriate font. Also, your shell is capable to show UTF-8 and so do your the text viewer.