Re: [Dspace-tech] encoding issue - again?

2008-04-22 Thread Maike Dulk
Elo! The Dark Lord from Redmont stroke again!

Thanks so much Dorothea, that makes perfect sense. The best example of 
not a bug but a feature that I have seen so far!

I replaced all that gunk with the proper UTF characters in the database 
and the problem is indeed solved.

Thanks again. I was indeed totally looking the wrong way!

~maike


On 21-Apr-08, at 5:57 AM, Dorothea Salo wrote:
(tr etc) #146;Feel It, Don#146;t Think: snip
which displays like
'Feel It, Don't Think: snip

This isn't UTF-8. This is a mangled horror from Microsoft.
Windows-1252, I think it's called; see
http://www.alanwood.net/demos/ansi.html.

You have two choices: fix the encoding in your items (if what is
supposed to appear above is a right single quote, #146; should be
#8217;), or switch out of UTF-8 back to Windows-1252. I recommend the
former; it's more up-front hassle, but far less hassle as future items
appear in UTF-8.

Dorothea

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] encoding issue - again?

2008-04-21 Thread Dorothea Salo
  (tr etc) #146;Feel It, Don#146;t Think: snip
  which displays like
  'Feel It, Don't Think: snip

This isn't UTF-8. This is a mangled horror from Microsoft.
Windows-1252, I think it's called; see
http://www.alanwood.net/demos/ansi.html.

You have two choices: fix the encoding in your items (if what is
supposed to appear above is a right single quote, #146; should be
#8217;), or switch out of UTF-8 back to Windows-1252. I recommend the
former; it's more up-front hassle, but far less hassle as future items
appear in UTF-8.

Dorothea

-- 
Dorothea Salo [EMAIL PROTECTED]
Digital Repository Librarian AIM: mindsatuw
University of Wisconsin
Rm 218, Memorial Library
(608) 262-5493

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] encoding issue - again?

2008-04-20 Thread maike
Hi all,

I'm really fazed by this one. I may be staring in the face of the obvious, but 
just need
another pair of eyes (or brains) to see what is going on here.

I'm upgrading from 1.2.1 to 1.5. Now at 1.4.

Re. UTF-8 compliancy: I did everything that seems to be required:

postgres DB says:
dspace= \l+
  List of databases
   Name|  Owner   | Encoding |Description
---+--+--+---
 dspace| postgres | UTF8 |

==

Java process says:
[EMAIL PROTECTED] conf]$ ps -eF | grep UTF
dspace   23927 1  0 186486 43356 0 18:19 pts/000:00:07 
/usr/local/jre/bin/java
-Xmx512M -Xms64M -Dfile.encoding=UTF-8 {...}

==

.bash_profile for user Dspace says:
JAVA_OPTS=-Xmx512M -Xms64M -Dfile.encoding=UTF-8

==

but still:

1.2.1 installation, HTML source of browse-title gives

(tr etc) #146;Feel It, Don#146;t Think: snip
which displays like
’Feel It, Don’t Think: snip

while 1.4 gives:
(tr etc) amp;#146;Feel It, Donamp;#146;t Think: snip
which displays like
#146;Feel It, Don#146;t Think:

The headers of the source code both say:
meta http-equiv=Content-Type content=text/html; charset=UTF-8

the database for BOTH installations contain the same lines:
1.4
dspace= select * from itemsbytitle where title like '%Digital Games%';
 items_by_title_id | item_id |  
  title 
  | 
   
 sort_title
---+-+-+--
   1603077 |1510 | #146;Feel It, Don#146;t Think:

1.2.1
dspace= select * from itemsbytitle where title like '%Digital Games%';
 items_by_title_id | item_id |  
  title 
  | 
   
 sort_title
---+-+-+--
   1690147 |1510 | #146;Feel It, Don#146;t Think:

now what can I have overlooked?

~maike


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech