Hi Jason
 
This could be a problem with the default character encoding on Windows - you 
could try setting 
-Dfile.encoding=utf-8
 
in CATALINA_OPTS
 
Though this does point to some code in Fedora making some bad assumptions about 
encoding.
 
Steve

-----Original Message-----
From: Jason Darwin [mailto:jcdar...@gmail.com] 
Sent: 16 June 2011 09:13
To: Support and info exchange list for Fedora users.
Subject: Re: [fcrepo-user] A couple of questions: character encoding 
andfiletype extensions


Hi Stephen, 

I've now tried this on a Windows machine with Fedora 3.4 installed under an 
existing Tomcat 6 installation, and similarly on a Debian machine, with Fedora 
3.3 installed under an existing Tomcat 6 installation.

The problem only appears on Windows, which therefore doesn't worry me too much 
as this is not a production environment.

Cheers,

Jason


On Thu, Jun 16, 2011 at 7:48 PM, Stephen Bayliss 
<stephen.bayl...@acuityunlimited.net> wrote:



Hi Jason
 
That doesn't look right.
 
Do you have a FOXML file that you ingested to create this object?
 
Regards
Steve


-----Original Message-----
From: Jason Darwin [mailto:jcdar...@gmail.com] 

Sent: 15 June 2011 11:38
To: Support and info exchange list for Fedora users.
Subject: Re: [fcrepo-user] A couple of questions: character encoding 
andfiletype extensions


Hi Stephen, 

Yes, had a look and I find

<foxml:datastreamVersion ID="DS2.flv.0" LABEL="Taku wh%u0101nau (My family)" 
CREATED="2011-06-13T09:10:48.936Z" MIMETYPE="video/x-flv" SIZE="11442494">

Cheers,

Jason


On Wed, Jun 15, 2011 at 9:25 PM, Stephen Bayliss 
<stephen.bayl...@acuityunlimited.net> wrote:


Hi Jason
 
Sounds like there could be an encoding issue in the display.
 
To make sure it's ingested and stored correctly in the FOXML, could you take a 
look at the FOXML (eg /objects/some:pid/export) and see what the label looks 
like there?
 
Steve
 
 


-----Original Message-----
From: Jason Darwin [mailto:jcdar...@gmail.com] 

Sent: 15 June 2011 09:29
To: Support and info exchange list for Fedora users.
Subject: Re: [fcrepo-user] A couple of questions: character encoding 
andfiletype extensions


The datastream content itself seems fine (i.e. displays as "Taku whānau"), 
however in the label fields in web admin display and in the web page display in 
the REST interface (e.g. 
http://localhost:8080/fedora/objects/test:1/datastreams) the text is appearing 
as "Taku wh%u0101nau".  


Jason




On Wed, Jun 15, 2011 at 7:46 PM, Stephen Bayliss 
<stephen.bayl...@acuityunlimited.net> wrote:


 
Regarding the character encoding, FOXML should be using UTF-8 for these.
 
Where are you seeing the unicode codepoints (ie how are you accessing the 
label) - does there seem to be any problem in the FOXML itself?
 
Steve
 
-----Original Message-----
From: Jason Darwin [mailto:jcdar...@gmail.com] 
Sent: 14 June 2011 20:24
To: fedora-commons-users@lists.sourceforge.net
Subject: [fcrepo-user] A couple of questions: character encoding andfiletype 
extensions



I notice that when I store flash videos (and I presume other types of content) 
in Fedora Commons, I can EXPORT the file from the administration interface with 
the filetype extension, but when I call the object content from the datastream, 
although the mimetype as defined is used (video/x-flv), there is no extension 
on the URL:

http://localhost:8080/fedora/objects/test:1/datastreams/DS2.flv/content 

This is presumably by design, but can someone confirm that there is no way to 
call the object with a filetype extension?

Also, I notice that when I create objects that include non-latin characters 
(e.g. "Taku whÄ nau"), they end up with the unicode code point in the title 
(e.g. "Taku wh%u0101nau").

Is this expected behaviour?

Thanks,

Jason




------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users





------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users





------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users




------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to