| Pages: [1] |
|
|
Author |
Topic: Accented letters ? (french) (Read 226 times) |
webknot
Posts: 3

|
Hello,
I tried to use SnippetMaster to change the text from this website (in french)
http://www.exposition-himalaya.com/
I have problems with accented letters which are transformed into some kind of code.
Any idea how I could solve this ? (Current charset=utf-8)
Thank you
|
|
|
|
|
|
Jenkinhill
|
Non-standard ASCII characters are converted in to either a numerical or html entity. So é is coded as é or as é This is web standard.
There is a special button in the editor with an omega symbol which is used to allow entry of special charcaters into page text.
Or have a Imissed the actual problem?
|
Kelvyn
|
|
|
webknot
Posts: 3

|
Thanks for your reply.
So I must use this "omega" and transform the whole text to be able to use SnippetMaster ?
In the source of http://www.exposition-himalaya.com/ there is no code like é
(I used a french keyboard and unicode)
|
|
|
|
|
|
Jenkinhill
|
No - it looks like I did misunderstand. The "websafe" way to allow extended ASCII to show in all browsers is to use html entities to represent accented characters. Yes, you can use utf8/unicode, but the tinyMCE editor in SnippetMaster plays it safe...
Copying "Le Tibet a élaboré une culture originale depuis plus d'un millénaire." from the page you quote into the editor gives this on saving: "Le Tibet a élaboré une culture originale depuis plus d'un millénaire." which is correct format for display in all browsers, and will do so across different Charsets. Somehow you need to be able to stop the conversion in the editor.
Ahh - have a look at this thread, which may help.
|
Kelvyn
|
|
|
webknot
Posts: 3

|
Thanks I used this trick by "Docman" found with your link and it worked:
- edit tiny_mce.js
- this is the code segment to work with:
{case"raw":return tinyMCE.xmlEncode(s);case"named":return tinyMCE.xmlEncode(s);case"numeric":return s.replace(......
- what you need to do is to replace the command pertinent to case "named" by "return tinyMCE.xmlEncode(s)".
This hack fools TinyMCE into thinking it is doing named (HTML entity) encoding.
|
|
|
|
|
|
|
Pages: [1]
|
|
|
|