TinyPortal

Development => International => Topic started by: dimdom on November 10, 2008, 05:10:49 PM

Title: TP editor (FCKeditor) encoding?
Post by: dimdom on November 10, 2008, 05:10:49 PM
When writing an article in TP editor (FCKeditor) everything displays OK. See example (in Greek). See example:

QuoteΕδώ βρίσκεÏ,,αι Ï,,ο αρχείο Ï,,ηÏ, παλαιάÏ, Gallery Ï,,οÏ... In Nomine. Î"ια ισÏ,,ορικούÏ, και άλλοÏ...Ï, λόγοÏ...Ï, παραμένει ζωνÏ,,ανή αλλά χωρίÏ, Ï,,ην δÏ...ναÏ,,ÏŒÏ,,ηÏ,,α προσθήκηÏ, φωÏ,,ογραφιών. Η νεόÏ,,ερη και πιο εξελιγμένη Ï,,εχνικά ΦΩΤΟ Gallery έχει αναλάβει αÏ...Ï,,όν Ï,,ον δύσκολο ρόλο πλέον...

But when I am switching to Source everything looks distorted and ...chinese. See example:

QuoteΕδÏŽ βρίσκεται το αρχείο της παλαιάς Gallery του In Nomine. Για ιστορικούς και άλλους λÏŒγους παραμένει ζωντανή αλλά χωρίς την δυνατÏŒτητα προσθήκης φωτογραφιÏŽν. Η νεÏŒτερη και πιο εξελιγμένη τεχνικ


When I am editing an article the characters are distorted but they are keep showing ok in the front end...

I am using TP 0.9.8, in 1.1.7 SMF with utf-8 in SMF...


Any ideas? ???
Title: Re: TP editor (FCKeditor) encoding?
Post by: bloc on November 10, 2008, 07:29:29 PM
The FCKeditor is transforming the charachters to a "safe" word, thats what you see there. It will still render as normal greek charachters in the article.
Title: Re: TP editor (FCKeditor) encoding?
Post by: dimdom on November 10, 2008, 08:12:07 PM
Any way to prevent editor from doing that, Bloc?
Title: Re: TP editor (FCKeditor) encoding?
Post by: G6Cad on November 10, 2008, 08:22:54 PM
Dont think it can work, you have to ask the fckeditor creators on their homepage as the functions within the editor is their work.
TP just use the fckpackage as a built in option to tp
Title: Re: TP editor (FCKeditor) encoding?
Post by: dimdom on November 10, 2008, 08:28:01 PM
I will try that. Thank you.
Title: Re: TP editor (FCKeditor) encoding?
Post by: feline on November 10, 2008, 11:45:46 PM
You have to setup in the FCKeditor config:
FCKConfig.ProcessHTMLEntities = true ;
FCKConfig.IncludeLatinEntities = false ;
FCKConfig.IncludeGreekEntities = false ;

FCKConfig.ProcessNumericEntities = false ;

Then your inputs shown on sourcecode as:
Εδώ βρίσκεÏ,,αι Ï,,ο αρχείο Ï,,ηÏ, παλαιάÏ, Gallery Ï,,οÏ... In Nomine. Î"ια ισÏ,,ορικούÏ, και άλλοÏ...Ï, λόγοÏ...Ï, παραμένει ζωνÏ,,ανή αλλά χωρίÏ, Ï,,ην δÏ...ναÏ,,ÏŒÏ,,ηÏ,,α προσθήκηÏ, φωÏ,,ογραφιών. Η νεόÏ,,ερη και πιο εξελιγμένη Ï,,εχνικά ΦΩΤΟ Gallery έχει αναλάβει αÏ...Ï,,όν Ï,,ον δύσκολο ρόλο πλέον...

fel
Title: Re: TP editor (FCKeditor) encoding?
Post by: dimdom on November 11, 2008, 01:22:13 PM
Thank you Fel!

That worked!