From: Francois-Xavier P. <fra...@ca...> - 2008-03-06 08:09:59
|
Hi, roczko wrote: > Hi Francois, > > could you explain to me where this char problem is nested? I don't know exactly, I had a quick look yesterday, it's in the resources.upload service which take care of the upload, update the _ref element to set the url (eg http://localhost:8080/geonetwork/srv/en/resources.get?id=7&fname=logo.png&access=private) and then forward the data (all the form elements) to the metadata.update service. metadata.update works fine because we can save, save and close. So the problem is in the resources.upload and probably the problem is linked to the "multipart/form-data"+encoding because all encoding works fine on the editor according to the metadata languages if we do not upload documents. An option could be to adopt the thumbnails mechanism: one form for the upload only which will update the metadata thumbnail info. Or an Ajax mechanism, upload the document and the response could be the url of the resource (eg http://localhost:8080/geonetwork/srv/en/resources.get?id=7&fname=logo.png&access=private). That way we don't have to refresh the form ? Ciao Francois I would like to > unterstand. > > best regard, > > roczko > > > Francois-Xavier Prunayre-2 wrote: >> Hi, >> roczko wrote: >>> Hi, >>> >>> if you use accept-charset="ISO-8859-1" then you can also upload data >>> without >> yep it will be a good workaround for some charsets but will not work for >> non ISO-8859-1 charset like chinese, ... >> >> We should probably open a ticket on that issue. >> >> Ciao >> >> Francois >> >>> the "é" being smashed. It is not the same to the post you mentioned >>> (http://www.nabble.com/UTF-8-encoding-problem-tc12290983s18419.html#a12894892) >>> because there only the chars was the problem and not chars and upload. >>> Try to fill in an "é" in a form and then upload a file. Normaly the "é" >>> will >>> be displayed in a wrong way. With accept-charset="ISO-8859-1" the char is >>> absolutely OK after you upload a file to a metadata set. >>> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> GeoNetwork-users mailing list >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geonetwork-users >> GeoNetwork OpenSource is maintained at >> http://sourceforge.net/projects/geonetwork >> >> > |