Προς το περιεχόμενο

Προτεινόμενες αναρτήσεις

Δημοσ.

Καλησπέρα. Έκανα μετατροπή από phpBB σε Invision Board και αντιμετωπίζω το εξής πρόβλημα.

 

Ενώ έχω ρυθμίσει το encoding σε UTF-8 και όλο το περιεχόμενο που έκανα convert από το phpBB φαίνεται κανονικά, όταν κάνω νέο topic ή απάντηση, εμφανίζει το ελληνικό α και β ως a και b.

 

Αυτό συμβαίνει μόνο με το shoutbox και το post body, δηλαδή το κείμενο του post, αλλά όχι τον τίτλο του topic.

 

post-42170-0-26792800-1347034053_thumb.png

 

όλα τα tables στην mysql είναι utf-8_general_ci

 

κοντεύω να τα παίξω, δεν μπορώ να καταλάβω γιατί αλλάζει μόνο το α και το β...

 

ΤΙ ΝΑ ΚΑΝΩ?

 

Έφαγα τον τόπο!!!

 

Τη λύση βρήκα στο http://community.invisionpower.com/resources/bugs.html/_/ip-board/random-capitalization-of-letters-in-the-text-r33979?st=25#commentsStart

 

The whole problem rests in the fact that CKEditor (and most WYSIWYG editors) convert non Latin characters to HTML Entities...

 

If you watch carefully you'll see that even after applying the solutions above, they only thing that happens is to "convert" those entities without any errors, thus people see all the characters as they were supposed to be seen.

 

BUT underneath all text is being stored as HTML Entities and not as UTF on the Database, which is not ideal for many reasons (thing about a massive forum and the overhead of using HTML Entities for each character!!!).

 

The PROPER solution to this is to tell CKEditor NOT to convert Greek, Cyrillic etc. characters to HTML Entities but treat them as normal UTF text. This way there is no bug at all.

 

The current (default) setup does make sense for users that use Latin characters and very rarely have a couple of Greek characters in their posts. This way they can use a different encoding (e.g. ISO-8859) and still have those characters displayed properly (since they are stored as HTML entities).

 

If a board uses Greek or Cyrillic as the main language then THERE IS A PROBLEM! Obviously we do not want ALL our text to be stored as HTML Entities. This is the main language so what's the point doing that?

 

 

SIMPLE SOLUTION:

 

Go to public/js/3rd_party/ckeditor and add the following line to ips_config.js

 

config.entities_greek = false;

 

additionally, there is an option to disable entities globally but needs some testing.

 

 

PROPER SOLUTION (maybe via patch or 3.2.4):

 

Switch this option by having a drop down box somewhere under ACP for the languages that have this issue.

 

 

EVEN BETTER SOLUTION:

 

Combine the proper solution above with the option to use the standard editor we all loved those years.

 

Regards

Δημοσ.

Ναι, πρός το παρών είναι η καλύτερη λύση (έτσι λένε οι owners στον tracker) μέχρι την 3.4 που θα έχουν το fix μέσα.

 

http://community.invisionpower.com/resources/bugs.html/_/ip-board/greek-language-error-old-new-topics-r37879

 

Edit: Το link που δίνεις στο αρχικό post ως λύση είναι για την 3.2.3 και δεν έχει καμία σχέση με την 3.3.4 οπότε προχώρα στο edit του \admin\sources\base\core.php

 

:)

Δημοσ.

Ναι, πρός το παρών είναι η καλύτερη λύση (έτσι λένε οι owners στον tracker) μέχρι την 3.4 που θα έχουν το fix μέσα.

 

http://community.inv...w-topics-r37879

 

Edit: Το link που δίνεις στο αρχικό post ως λύση είναι για την 3.2.3 και δεν έχει καμία σχέση με την 3.3.4 οπότε προχώρα στο edit του \admin\sources\base\core.php

 

:)

 

Λειτουργεί όμως και με την 3.3.4, το έκανα λίγο πριν μου απαντήσεις και το δοκίμασα. Όμως τώρα το επανέφερα το js (έσβησα τη γραμμή) και άλλαξα το core.php όπως περιγράφουν στο topic που μου έδωσες. Σε ευχαριστώ και πάλι!!! :)

 

Έχω δουλέψει με ένα κάρο φόρουμς το IPB φαίνεται το καλύτερο!!!

Δημιουργήστε ένα λογαριασμό ή συνδεθείτε για να σχολιάσετε

Πρέπει να είστε μέλος για να αφήσετε σχόλιο

Δημιουργία λογαριασμού

Εγγραφείτε με νέο λογαριασμό στην κοινότητα μας. Είναι πανεύκολο!

Δημιουργία νέου λογαριασμού

Σύνδεση

Έχετε ήδη λογαριασμό; Συνδεθείτε εδώ.

Συνδεθείτε τώρα
  • Δημιουργία νέου...