BOARDS

planetluc.com discussion board

all about the planetlu.com scripts

You are not logged in.

Announcement

I had to clean the boards due to massive spam. Actually i deleted everything /-one after 1st Oct 2008. It was the only way to get this spam out of the boards. So i'm sorry for all serious users who registered/posted meanwhile.
  • Index
  •  » MyNews
  •  » Korean in heading not displayed properly

#1 28-01-2006 13:36:02

cmpanel
New member
Registered: 12-10-2005
Posts: 4

Korean in heading not displayed properly

Hello,

Thanks for the great work. I am trying to use it for Korean site and teaser and body all look good. However, heading looks not good. Is this encoding related? Any advice what to do?

Cheers
Sun Joo

Offline

 

#2 28-01-2006 15:46:45

admin
Administrator
From: Winterhur, Zurich, Switzerland
Registered: 25-11-2004
Posts: 462
Website

Re: Korean in heading not displayed properly

It is/was -> redownload the latest version, 1.6.1!

Offline

 

#3 02-03-2006 14:40:09

cmpanel
New member
Registered: 12-10-2005
Posts: 4

Re: Korean in heading not displayed properly

Hi, I downloaded 1.6.2 and tried out.. Title, Teaser, Story in list format looks okay. Entry is okay too. But in editing, all Korean looks distroyed, screen shot http://hostsmb.com/mynews.gif

What am I missing ? Encoding is in euc-kr, for Korean. Thanks for your advice.

Offline

 

#4 11-05-2008 17:05:30

ozwds
New member
Registered: 11-05-2008
Posts: 3

Re: Korean in heading not displayed properly

Hi, cmpanel,

I am trying insert Chinese news and it doesn't work. how did you do it with Korean? Please help.

I am using the latest version

Thanks.

Offline

 

#5 12-05-2008 18:25:02

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: Korean in heading not displayed properly

ozwds,

Do you have a link to your installation (where you have MyNews installed)?  Are you using the FCKeditor WYSIWYG text editor?  I can check to see if it will work for you . . . or if we need to update the FCKeditor installation.


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#6 17-02-2009 10:54:22

alpieman
New member
Registered: 16-02-2009
Posts: 3

Re: Korean in heading not displayed properly

This problem happens with non-ascii characters in the "title" only. News teaser and story do not have this issue. I am using UTF-8 encoding. Steps to recreate this issue:

1- Create a news item with some characters not in the standart ASCII set. For example type an accented character like "Ç" in the title, teaser, and story. Save it.
2- The teaser, story and title looks good.
3- Click on "edit"
4- You'll see the title becomes Ã� . Teaser and story still shows "Ç" properly.

Is there a fix available for this issue?

Regards,
Alpieman

Offline

 

#7 17-02-2009 15:50:29

alpieman
New member
Registered: 16-02-2009
Posts: 3

Re: Korean in heading not displayed properly

Fixed it! Make the following change in mynews.inc.php around line 473. Add UTF-8 (or whatever charset you're using) to the end of line. Possibly there is way to automatically extract the encoding from within PHP, but I am just a newbie, not sure how to do it.

Regards,
Alpieman

                //$title= htmlentities(stripslashes($post['title']), ENT_QUOTES);
                $title= htmlentities(stripslashes($post['title']), ENT_QUOTES, 'UTF-8');

Offline

 

#8 04-05-2010 07:07:37

Highway311
New member
Registered: 04-05-2010
Posts: 2

Re: Korean in heading not displayed properly

alpieman wrote:

//$title= htmlentities(stripslashes($post['title']), ENT_QUOTES);
                $title= htmlentities(stripslashes($post['title']), ENT_QUOTES, 'UTF-8');

Thanks for pointing this out

Is now in line 463

Last edited by Highway311 (04-05-2010 07:08:38)

Offline

 
  • Index
  •  » MyNews
  •  » Korean in heading not displayed properly

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

 
 
© 2003-2010 by planetluc.com · Bachtelstrasse 104 · CH-8400 Winterthur | Support | Login |