Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: ????????? in place of special characters..
Pages: [1]   Go Down
  Print  
Author Topic: ????????? in place of special characters..  (Read 3395 times)
0 Members and 2 Guests are viewing this topic.
hanuman
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: April 10, 2010, 03:08:51 »

Could someone help, I'm a bit lost..

As I administer multi-language site, comments should have the possibility of adding special characters..
When I tested this component on the demo site, characters were displayed correctly (āžšīļņķ); when I try to do the same on my server - they are replaced by question marks, like ? ? ? ? ? ? ? ... what do I do? Smiley

Logged
BBC
Full Member
***

Karma: 4
Offline Offline

Posts: 197



« Reply #1 on: April 10, 2010, 16:15:01 »

It has to do with your language coding at server, i believe.
Open your database with phpmyadmin and change character and collation to UTF-8.
Logged
hanuman
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« Reply #2 on: April 11, 2010, 03:40:00 »

Thanks it helped!
I used this query:
ALTER TABLE table CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
on all tables concerning JComments..
Logged
Balance
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #3 on: October 25, 2010, 03:13:49 »

Hi everyone!  Smiley

I'm also about to add jcomments to my multilingual website. But I've ran into the exact same problem.
As you can see in the first screenshot below, the special characters are correctly displayed in the comment title and body, but they are messed up in mouseover descriptions and other jcomment elements.

I've tried your above solution, but it didn't work for me - I've probably done it wrong somehow or overlooked a table.
I logged into phpmyadmin (didn't have to do something manually in there for ages) and for the following tables I used your query:

jos_jcomments
jos_jcomments_custom_bbcodes
jos_jcomments_reports
jos_jcomments_settings
jos_jcomments_subscriptions
jos_jcomments_version
jos_jcomments_votes


If I understood correctly I simply had to copy your below SQL-command and replace the "table" part with "jos_jcomments_reports" etc. for each table.

ALTER TABLE table CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;


Anyway all the jcomment tables now have successfully changed their code from utf8_general_ci to utf8_unicode_ci. I cleaned the cache but the special characters are still displayed as questionmarks.

So, what did I miss here? Did I miss a table or why else didn't it work? =\
Thank you very much for helping out!


* jcomments_db.jpg (67.96 KB, 861x290 - viewed 270 times.)
« Last Edit: October 27, 2010, 07:00:45 by Balance » Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #4 on: October 25, 2010, 16:06:05 »

the special characters are correctly displayed in the comment title and body, but they are messed up in mouseover descriptions and other jcomment elements.
It looks like we've some problems with JComments language file's encoding. Check JComments' language file in Joomla's language folder (for English it placed here: /language/en-GB/en-GB.com_jcomments.ini).
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Balance
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #5 on: October 25, 2010, 18:48:02 »

Ah!

Thank you so much, you pointed me in the right direction.

Simply open the .ini file (obviously not the english one, the foreign one which is messed up) with the windows notepad editor or some other editor and simply resave it.  "Save as..." brings up the save window and there is a window where you can select UTF-8 and resave the file.

Thanks for your quick reply smart!

Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #6 on: October 25, 2010, 18:51:02 »

Say me please which language file has incorrect encoding? And specify your JComments version. I'll fix this issue in next version.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Balance
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #7 on: October 27, 2010, 01:44:41 »

I use Jcomments 2.2.0.2

It's the German .ini file that made those problems:  \htdocs\language\de-DE\de-DE.com_jcomments.ini
Can't say anything about other languages, though.
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: ????????? in place of special characters..
 
Jump to: