OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Trouble with Email adresses (New translation)

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Trouble with Email adresses (New translation)

Postby torgeirc » Mon May 14, 2007 5:06 am

Hi

My name is Torgeir Christiansen, and I am working with Karl Henrik Flyum to translate OJS to Norwegian.

We have sucessfully done quite a lot of translation and implemented the new local files, but have to strange problems we don't seem to be able to fix.

1) In the Email logg between editor and review'er the email adresses gets really confused when they contain Norwegian letters.

Ex:

The name of the user is given as ÆØÆÅØÆ æøæåøæ
In the Email log (at ojs/ojsnorsk3/index.php/t1/editor/submissionHistory/1) get to be printed in the web page as:
=?UTF-8?B?w4bDmMOGw4XDmMOGIMOmw7jDpsO...

The system should be an clean UTF-8 installation on RedHat Linux Workstation 4.

Any hint on what is causing this ?

2)
When Reading Tools are on, the links to HTML of articles are not correctly identefied as html, and you get a question of how you want to download the file. If we turn reading tools of - no trouble ...


Any hints on this ?

-tch
torgeirc
 
Posts: 5
Joined: Mon May 14, 2007 4:54 am

Postby asmecher » Tue May 15, 2007 10:05 am

Hi Torgeir,

The email log problem will require some further investigation. Could you look in the article_email_log table to see whether the entries are stored correctly there, or whether they are also corrupted in the database? What are you using for the connection_charset and database_charset options in config.inc.php, and does your PHP installation support mbstrings? (If you need help determining the answers to any of those questions, I can describe further.)

As for the reading tools problem, this is likely indicative of a problem with the configuration of PHP's mime_content_type function. Search this forum for "mime_content_type" and you'll find additional threads on the same subject.

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 7717
Joined: Wed Aug 10, 2005 12:56 pm

Postby torgeirc » Wed May 16, 2007 7:48 am

The email log problem will require some further investigation. Could you look in the article_email_log table to see whether the entries are stored correctly there, or whether they are also corrupted in the database?


They are corrupted there:

=?UTF-8?B?w4bDmMOGw4XDmMOGIMOmw7jDpsOlw7jDpg==?= <email@adress.no>


What are you using for the connection_charset and database_charset options in config.inc.php


I am using Latin for the database, and other data going in and out is correctly handled. From the Ini file

; Client output/input character set
client_charset = utf-8

; Database connection character set
; Must be set to "Off" if not supported by the database server
; If enabled, must be the same character set as "client_charset"
; (although the actual name may differ slightly depending on the server)
connection_charset = Off

; Database storage character set
; Must be set to "Off" if not supported by the database server
database_charset = Off

and does your PHP installation support mbstrings?


Yes.

I have done some surfing on the problem, and it seems to very much like problems experienced with Mail_Mime errors in php.

Like the ones described here: http://pear.php.net/bugs/bug.php?id=30

-tch
torgeirc
 
Posts: 5
Joined: Mon May 14, 2007 4:54 am

Postby asmecher » Thu May 17, 2007 3:31 pm

Hi torgeirc,

Hmm, I'm not able to reproduce the problem locally. Could you try temporarily setting connection_charset and database_charset to utf8 and sending yourself a message to see if it's recorded in the history page properly?

What version of PHP and MySQL (or PostgreSQL) are you using?

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 7717
Joined: Wed Aug 10, 2005 12:56 pm

Postby torgeirc » Thu May 24, 2007 5:57 am

asmecher wrote:Hi torgeirc,

Hmm, I'm not able to reproduce the problem locally. Could you try temporarily setting connection_charset and database_charset to utf8 and sending yourself a message to see if it's recorded in the history page properly?

What version of PHP and MySQL (or PostgreSQL) are you using?

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/


We have tried a number of tests. We have also created an PDF document showing screencaptures and so on. This is available at: http://folk.uio.no/torgeich/ojs.pdf

Main points:

1) Created an new database in UTF-8, new ojs install using only orginal files, used UTF-8 all the way. Then the field in the database showning the user details gives the correct chars in the name of the user part of the E-mail adress as long as we look directly into the MYSQL database (Not from OJS).

Still the same problems when for example listing the user info inside OJS. Screeen capture is available in the PDF file.

2) We are running mysql, version: 4.1.20. The PDF file also lists the phpinfo result, as well as the config file for the OJS system we use ...

Any new hints ?

-tch
torgeirc
 
Posts: 5
Joined: Mon May 14, 2007 4:54 am

Postby asmecher » Thu May 24, 2007 9:56 am

Hi torgeirc,

Thanks for the additional details. I suspect this is a bug in UTF-8 support in your version of PHP, and in fact, PHP < 4.2.x isn't technically supported by OJS so you may run into other problems. I'd suggest upgrading to the extremely stable 4.4.x line.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 7717
Joined: Wed Aug 10, 2005 12:56 pm

Postby torgeirc » Wed May 30, 2007 9:20 am

asmecher wrote:Hi torgeirc,

Thanks for the additional details. I suspect this is a bug in UTF-8 support in your version of PHP, and in fact, PHP < 4.2.x isn't technically supported by OJS so you may run into other problems. I'd suggest upgrading to the extremely stable 4.4.x line.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/


We still have trouble. Do to server availability the next test was with php 5, but still the same problem with Norwegian characters.

More information at: http://folk.uio.no/torgeich/ojs2.pdf

Any hints on where in the code of OJS this is happening ?

-tch
torgeirc
 
Posts: 5
Joined: Mon May 14, 2007 4:54 am

Postby asmecher » Wed May 30, 2007 10:10 am

Hi torgeirc,

I see -- we're running several PHP 5.x machines, including Debian, but this is proving difficult to duplicate. If you don't mind, I'd like to investigate further; could you contact me via email?

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 7717
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 2 guests