<html>
<body>
<font size=3>I use notepad++ to modify the file<br>
if the file is saved unix utf-8 it did not work<br>
i have to save in unix ansi as utf-8<br>
after that i can modify the file in web interface<br>
i have this line in the code <br>
</font><tt>binmode( DATA, ":utf8" );<br>
</b></tt><font size=3><b>everything work find now <br>
</b>Mario<br><br>
At 11:09 2012-06-18, you wrote:<br>
<blockquote type=cite class=cite cite="">There used to be a bug with this
(but I don't know which version of EPrints you're using...)<br>
<br>
Try editing:
/opt/eprints3/perl_lib/EPrints/Plugin/Screen/Admin/Config/Edit.pm
(replace /opt/eprints3 with your EPrints install path)<br><br>
Look for:<br><br>
</font><tt> # install the new
file<br>
unless( open( DATA,
">$fn" ) )<br>
{<br>
$self->{processor}->add_message(<br>
"error",<br>
$self->{session}->html_phrase(
"Plugin/Screen/Admin/Config/Edit:could_not_write",<br>
error_msg=>$self->{session}->make_text($!),<br>
filename=>$self->{session}->make_text(
$self->{processor}->{configfilepath} ) ) );<br>
return;<br>
}<br>
print DATA $data;<br>
close
DATA;</tt><font size=3><br><br>
If it looks like the code above, then change to:<br><br>
</font><tt> # install the new
file<br>
unless( open( DATA,
">$fn" ) )<br>
{<br>
$self->{processor}->add_message(<br>
"error",<br>
$self->{session}->html_phrase(
"Plugin/Screen/Admin/Config/Edit:could_not_write",<br>
error_msg=>$self->{session}->make_text($!),<br>
filename=>$self->{session}->make_text(
$self->{processor}->{configfilepath} ) ) );<br>
return;<br>
}<br>
binmode( DATA,
":utf8" );</b><br>
print DATA $data;<br>
close
DATA;</tt><font size=3><br><br>
Restart Apache after making the change & let us know if that fixed
your problem?<br><br>
Seb.<br><br>
<br><br>
On 18/06/12 15:58, Mario Beaudoin wrote: <br>
<blockquote type=cite class=cite cite=""><br>
with web interface "Edit Xpage code"<br>
i think the UTF8 is not reconised by this web interface<br>
but if i transfert the same file with ftp <br>
and update static it work fine<br>
Mario<br>
At 10:38 2012-06-18, you wrote:<br>
<blockquote type=cite class=cite cite="">Hi Mario,<br><br>
Do you mean when editing phrases? Or in a "phrases"
file?<br><br>
On my local 3.2.3 dev machine I have a phrases file (encoding = utf-8)
with French accents (without having to "code" them) and this
just works.<br><br>
Seb.<br><br>
On 18/06/12 14:49, Mario Beaudoin wrote: <br>
<blockquote type=cite class=cite cite="">I<br><br>
I have the same error<br>
first line of the code is<br>
<?xml version="1.0" encoding="UTF-8"
standalone="no" ?><br>
work fine in 3.2.7<br>
now i have to write this<br>
<?xml version="1.0" encoding="iso-8859-1"
standalone="no" ?><br>
i have to code all french accent<br>
it is possible to fix that Please<br><br>
Best regards,<br>
Mario</blockquote><br>
*** Options:
<a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" eudora="autourl">
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive:
<a href="http://www.eprints.org/tech.php/" eudora="autourl">
http://www.eprints.org/tech.php/</a><br>
*** EPrints community wiki:
<a href="http://wiki.eprints.org/" eudora="autourl">
http://wiki.eprints.org/</a></blockquote><br>
</font><pre>
*** Options:
<a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive:
<a href="http://www.eprints.org/tech.php/">
http://www.eprints.org/tech.php/</a>
*** EPrints community wiki:
<a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
</pre><font face="Courier New, Courier" size=3></font></blockquote><br>
*** Options:
<a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" eudora="autourl">
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive:
<a href="http://www.eprints.org/tech.php/" eudora="autourl">
http://www.eprints.org/tech.php/</a><br>
*** EPrints community wiki:
<a href="http://wiki.eprints.org/" eudora="autourl">
http://wiki.eprints.org/</a></blockquote></body>
</html>