SnippetMaster Support Forums
Return to main website
 
May 23, 2008, 09:38:16 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2008, 09:38:16 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Accented letters ? (french) « previous next »
Pages: [1] Print
Author Topic: Accented letters ? (french)  (Read 224 times)
webknot

Posts: 3


WWW
[-] Accented letters ? (french)
« on: February 29, 2008, 06:58:53 AM »

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
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 347



[-] Re: Accented letters ? (french)
« Reply #1 on: March 01, 2008, 03:26:43 AM »

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?
Report to moderator   Logged

Kelvyn
webknot

Posts: 3


WWW
[-] Re: Accented letters ? (french)
« Reply #2 on: March 01, 2008, 03:54:35 AM »

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)
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 347



[-] Re: Accented letters ? (french)
« Reply #3 on: March 01, 2008, 05:34:20 AM »

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.
Report to moderator   Logged

Kelvyn
webknot

Posts: 3


WWW
[-] Re: Accented letters ? (french)
« Reply #4 on: March 04, 2008, 11:15:13 AM »

Thanks I used this trick by "Docman" found with your link and it worked:

Quote
- 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.



Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Accented letters ? (french) « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!