Files/FileNamesUTF8

From EPrints Documentation
Revision as of 11:21, 3 September 2007 by WikiSysop (Talk | contribs)

Jump to: navigation, search

fal blod honor tracklist hit mania dance estate 2004 air max nero rosso cartoline sexsy fiat stilo mw kayleigh ally mc beal la battaglia di stalingrado erboristerie online mesager dolby system cicciolina mp4 tutti giu per terra giuseppe culicchia azione matrix little models ristoranti etnici dance news vol 7 celeb scandalo yamaha lettore cd vedda i had the time of my life al 1722hs bacon fils caetano tragico oriente albergo roma centro tony tammaro canon mf 5650 i divertimenti della vita privata power translator pro 9 0 stampa volantini hp 5110 oostvlaanderen biglietto aereo scontato foto automobili champion league tv le piu belle donne tarantella italiana giacca uomo abbigliamento hd 300 gb eide 7200rpm diamondmax 10 immagini elisa triani daddy cool football australiano cd video cd mp3 i dont wonna now hp 7450 photosmart cavallo verona muvo v200 512 mb yamaha dvds550 fotocamere digitali yakumo bebe confort allegro plus ken il guerriero dvd garda lavoro forno microonde samsung 37 litri samsung 710 tv 17 casio exilim pro p700 hp laserjet 4650dn biglietto augurio nascita nangarhar vintage ma non dragonera teac 250 gb volo follonica poesia dediche foppapedretti stendi philips televisore 28 time stood still ragazze grasse familia lima lettini per neonati hp t3010 supporto pda qtek per auto leggiposta bolero extasy profumi hermes jardin dynamite ducks fausto e anna di cassola la vita oltre la vita banff shopping viva gaggia un amore impossibile dei tiro mancino intel 925xe reggio calabria iatliani piu famosi tuta roma villaverde pneumotorace frigoriferi a compressore vacuum tube unefon audigy2 zs testi di pink traduttore di testi spagnoli una casa in via del campo ramazzotti pietra tabs nike nz bassi acustici adidas team ragazzo taormina allestimento mostre fr 540 sborrami in bocca calendario capital case in costruzione peugeot 406 sw hdi cardito massaggiatrici lecce libro dei protesti lcd b o 32 tampa san petersburg cose fare maglioni liu jo fp 940 vannucci atto frigorifero 188 cm bedandbreakfast sardegna sverginata concerti 2004 raf qosmio double layer toshiba portatili dect gap telecom venire dentro gloria cacharel sony dcr dvd403e centro commerciale i portali unipd latino americano carnival ragazze di napoli d p r 459 96 angel devil totocalcio 2004 sms it gabbiano infelice per amore per magia salone francesca statistica sito web foto amatoriali di donne spogliate come un gelato all equatore filmato bulgari conte mp3 cem karaca download nero6 retail lionel richi ml oki stampanti eva hanger video player staffa a muro universale accessori mio 168 on regionale amendola il billiardo nokia 6230 live handycam dcrhc17e false bay pioneer dcs 525 laws on spy cams geforce 6600 128 mb sms gratuiti cellulare cabernet sauvignon emilia connerie csi vicenza benvenuti nuova carens kia hard usb2 dispositivo gps xxxporn fotos karen dejo bl 4c heidi novgorod traduzione shut up nuovi giochi da non scaricare e non con kodak easyshare cx7525 7525 test d ingresso scuola media inferiore macgyver finestre chris benoit testi canzoni hilary duff tv plasma wxga dj raff riassunto giara pirandello renault megane 1 5 luxe dinamique frisina computorgirl dvd r70 philips alcatel all be4 donne proibite destroy all humans game telecamera sony pc 6 foppapedretti fasciatoi felicity huffman traduzione in cinese portoferraio video porno da vedere gratuitamente lavatrici carica alto profondita 40 e non ho te grand hotel olympic aurum uno strano percorso 883 lady susan immagini cbr grl assistenza tecnica acer bari sabarkantha adamo giovanni == Hack to have file names with utf-8 chars (for browsing) == All start with a problem about browsing and UFT-8. I have done a browsing index on journal titles (as for example 'Library Tech News', ' Library tech', ec.). The name of the field where uploader inserts the journal title is 'pubblication'.


The browsing index is done of static web pages, there is menu page with all journal titles and links to pages of every journal. The name of the web page of one jornal is <journal title>.html For example: http://eprints.rclis.org/view/journtitle/Biology_Education.html The name of the file in the file system is Biology_Education.html


But what happens when you have journal title with name not in latin chars ? Reading RFC 1738 is clear that web link must be only with US-ASCII chars, so EPrints transalte the US-ASCII chars in numeric, using the numbers of UTF-8. For example: http://eprints.rclis.org/view/journtitle/==6D25==56FE==5B66==520A.html ( a chinese journal). But this translation uses many chars, 6 chars for every sign not US-ASCII. In Linux, with file system ext3 the file name could be at max 255 byte long. I can index only jornal titles with a t max 42 signs, too few.


The problem is present in the line 484 of generate_views:

       print FILE EPrints::XML::to_string( $page, undef, 1 );

So the solution (the idea came from Chris) is to hack the routine that manages the name of files. The routine is escape_filename in EPrints::Utils.pm.

From http://eprints.rclis.org/fixsoft/Utils.pm.gz you can download the routine hacked by me. Please be careful, it is a huge change. You must to rebuilt all files with generate_abstrat, generate_views, generate_static (after a stop and restart of Apache). You must have a file system that support UTF-8 in file names (like ext3).

The result (a journal in greek): http://eprints.rclis.org/view/journtitle/Τεκμήριον.html The link is written with hex values, but on the file system the name is with greek chars.