List Info

Thread: comments encoding issue




comments encoding issue
user name
2006-11-06 21:34:43
Hi,

update regarding comments behaviour: when using template
path setting, 
comments are unreadable (every space is transformed to '+'
sign, any 
character that is not letter is represented with
%something). However, when 
you switch to short url, everything starts to work
correctly. Cyrillic 
comments are encoded correctly too (while on tpl path they
were completelly 
unreadable). At least on MOW servers.

There is another thing - when comment is posted, in comments
moderating 
screen one can notice the copy of comment - instead of
subject, the copy has 
article name, and the body of comment is empty; this clone
comment cannot be 
deleted, you can just make it new, hidden, or ban user
(normal comment 
offers possibility to delete it, which is very useful when -
for example - 
somebody is testing comment implementation). Clone is
included in total 
comment count in admin interface, but is not shown or
counted on front end.

Ljuba

----- Original Message ----- 
From: "Holman Romero" <holman.romerogmail.com>
To: <campsite-supportcampware.org>
Sent: Monday, October 23, 2006 4:08 PM
Subject: Re: [campsite-support] comments encoding issue


> Raed !
>
> Sava told me about the Author/Email problem in Campsite
frontend
> (templates) when writing comments in Arab. They are
displayed in
> unicode encoding format. I figured out it is because
the email
> obfuscation, so if you use:
>
> <!** print articlecomment readerEmail>
>
> instead of:
>
> <!** print articlecomment readerEmailObfuscated>
>
> they will be displayed in a right way.
>
> Arabic chars within the admin area are still working Ok
for me, anyway.
>
> let us know about your advance on this.
>
>
> On 10/23/06, Holman Romero <holman.romerogmail.com> wrote:
>> Raed! good morning!
>>
>> as Mugur pointed out, it works well on my system, i
am able to manage
>> Arabic characters all around Campsite.
>>
>> be sure your pages have utf-8 like default charset,
this is:
>>
>> <meta http-equiv="content-type"
content="text/html; charset=utf-8">
>>
>> within the corresponding <head> area.
>>
>> on the other hand, in my case (i dont know
Mugur's), utf-8 is the
>> default charset for data storage in the MySQL
database. check this out
>> too.
>>
>>
>> On 10/19/06, Holman Romero <holman.romerogmail.com> wrote:
>> > hi Raed !
>> >
>> > let me read on the thread and i will tell you
something as soon as i 
>> > finished.
>> >
>> >
>> >
>> > On 10/19/06, Raed Neshiewat <raedtamamtech.com> wrote:
>> > > Hi Holman,
>> > >
>> > > Do you have any suggestion on fixing
this? We can give you access to 
>> > > the
>> > > server to check it out if you want.
>> > >
>> > > Thanks.
>> > >
>> > > _______________________________
>> > > Raed Neshiewat
>> > > Director
>> > > TamamTech Inc.
>> > > PO Box: 940424
>> > > Amman, Jordan 11118
>> > > Tel: +962 6 566 9700
>> > > Fax: +962 6 566 9730
>> > > Email: raedtamamtech.com
>> > >
>> > > -----Original Message-----
>> > > From: Mugur Rus [mailto:mugur1973yahoo.com]
>> > > Sent: Tuesday, October 17, 2006 4:11 PM
>> > > To: campsite-supportcampware.org
>> > > Cc: archivetamamtech.com
>> > > Subject: RE: [campsite-support] comments
encoding issue
>> > >
>> > > Hi,
>> > >
>> > > Holman, could you take over support staff
and urgent issues like this
>> > > encoding problem? I surely
>> > > won't be able to reply quickly to these
requests this week.
>> > >
>> > > Regarding the encoding issue, I wasn't
able to replicate it, works ok 
>> > > on my
>> > > system. Please debug
>> > > this on code.campware.org and cs-dev.
>> > >
>> > > Mugur
>> > >
>> > > --- sava.taticmdlf.org wrote:
>> > > > Actually,
>> > > >
>> > > > As Mugur is moving to his new
apartment, Holman, can you take a 
>> > > > look at
>> > > > this?  (Mugur, if you get around to
it, you can do it too, but 
>> > > > let's solve
>> > > > this issue).
>> > > >
>> > > > Sava
>> > > >
>> > > >
>> > > >
>> > >
>> > > >
>> > > >                       "Raed
Neshiewat"
>> > >
>> > > >
>> > > >                       <raedtamamtech.c        To:
>> > > <campsite-supportcampware.org>
>> > > >
>> > > >                       om>        
             cc:
>> > > <archivetamamtech.com>
>> > > >
>> > > >                                     
          Subject:  RE:
>> > > [campsite-support] comments
>> > > > encoding issue
>> > > >                       17/10/2006
08:27
>> > >
>> > > >
>> > > >                       AM
>> > >
>> > > >
>> > > >                       Please respond
to
>> > >
>> > > >
>> > > >                      
campsite-support
>> > >
>> > > >
>> > > >
>> > >
>> > > >
>> > > >
>> > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > Hello Mugur,
>> > > >
>> > > > The server has the latest PHPwrapper
1.1.7 and the site default 
>> > > > character
>> > > > set is UTF-8 however the problem
still exists.
>> > > >
>> > > > I tried changing the character set
to windows-1256 (Arabic). The 
>> > > > whole
>> > > page
>> > > > came out garbage but when I
submitted the comment, it was saved and
>> > > > displayed in the campsite interface
the same way it is when we 
>> > > > submitted
>> > > > the comment with UTF-8 encoding. So
it seems that the page encoding 
>> > > > has
>> > > > nothing to do with way the Arabic
comments are saved.
>> > > >
>> > > > We also ran into a runtime error
when were deleting the comments. 
>> > > > We
>> > > > submitted the error using the Bug
reporter. Did you get it?
>> > > >
>> > > > What do you think we can do to solve
the issue with Arabic 
>> > > > comments?
>> > > >
>> > > > _______________________________
>> > > > Raed Neshiewat
>> > > > Director
>> > > > TamamTech Inc.
>> > > > PO Box: 940424
>> > > > Amman, Jordan 11118
>> > > > Tel:    +962 6 566 9700
>> > > > Fax:   +962 6 566 9730
>> > > > Email: raedtamamtech.com
>> > > >
>> > > >
>> > > > -----Original Message-----
>> > > > From: Mugur Rus
[mailto:mugur1973yahoo.com]
>> > > > Sent: Thursday, September 28, 2006
10:55 PM
>> > > > To: campsite-supportcampware.org
>> > > > Subject: Re: [campsite-support]
comments encoding issue
>> > > >
>> > > > Hi Fadi,
>> > > >
>> > > > Please make sure the following
conditions are met:
>> > > > - you installed the latest
PHPwrapper (1.1.7)
>> > > > - the site default character set is
UTF-8
>> > > >
>> > > > I tested comments with both cyrillic
and arabic characters and IT 
>> > > > WORKS
>> > > > correctly on my computer (see
attached screenshots), so it's not a
>> > > Campsite
>> > > > bug.
>> > > >
>> > > > Regards,
>> > > > Mugur
>> > > >
>> > > > --- Fadi <faditamamtech.com> wrote:
>> > > > > We are trying to implement the
comments but we are having a 
>> > > > > problem
>> > > > > viewing the comments in the
admin interface. The comments which 
>> > > > > are
>> > > > > originally in arabic are
displayed in unicode encoding format 
>> > > > > such as:
>> > > > >
>> > > > >
%D8%B1%D8%A4%D9%84%D8%A7%D8%A4%D8%B1
>> > > > >
>> > > > > See the attach image how the
comments are displayed in the admin
>> > > > interface.
>> > > > >
>> > > > > Fadi Abu Essa
>> > > > > Senior Developer
>> > > > > TamamTech Inc.
>> > > > > http://www.tamamtech.com
>> > > > > Phone: +962 6 5669700
>> > > >
>> > > >
__________________________________________________
>> > > > Do You Yahoo!?
>> > > > Tired of spam?  Yahoo! Mail has the
best spam protection around
>> > > > http://mail.yahoo.com
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > Invest in Press Freedom: Visit 
>> > > > http://www.mdl
f.org/support-free-press
>> > > >
>> > > >
>> > > >
>> > >
>> > >
>> > >
__________________________________________________
>> > > Do You Yahoo!?
>> > > Tired of spam?  Yahoo! Mail has the best
spam protection around
>> > > http://mail.yahoo.com
>> > >
>> > >
>> > >
>> > >
>> >
>> >
>> > --
>> > /holman
>> >
>>
>>
>> --
>> /holman
>>
>
>
> -- 
> /holman 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )