[CPS-devel] XML profiles charset

Florent Guillaume fg at nuxeo.com
Mon Mar 20 15:44:59 CET 2006


XML files must be encoded in UTF-8.

Florent

On 15 Mar 2006, at 17:45, Stefano Schintu wrote:

> Hello,
> I have the same problem with the fields "Label in view layout mode"
> and "Label in edit layout mode" in the layouts. I get an error if the
> fields contains letters with accents.
> The layouts were created directly in the ZMI and exported with
> portal_setup. Export was fine but then after I created a new profile
> to import it in another instance I got the error.
> Should I use entities as à or à?
>
> Thank you,
> Stefano
>
> On 3/15/06, JoseLuis de la Rosa Triviño
> <joseluis.rosa at iavantefundacion.com> wrote:
>>
>>
>>
>> Hello everybody,
>>
>>
>>
>> I'm creating my own product for CPS 3.4 and I get this traceback  
>> when I try
>> to install the profile.
>>
>>
>>
>> ################################################
>>
>> Traceback (most recent call last):
>>
>>   File "/opt/zope2.9/lib/python/ZPublisher/Publish.py",
>> line 114, in publish
>>
>>     request, bind=1)
>>
>>   File "/opt/zope2.9/lib/python/ZPublisher/mapply.py", line
>> 88, in mapply
>>
>>     if debug is not None: return debug(object,args,context)
>>
>>   File "/opt/zope2.9/lib/python/ZPublisher/Publish.py",
>> line 40, in call_object
>>
>>     result=apply(object,args) # Type s<cr> to step into published  
>> object.
>>
>>   File
>> "/root/instances/zope2.9/bpiDes/Products/CPSCore/setuptool.py",
>> line 291, in manage_importProfile
>>
>>     self.importProfile(context_id)
>>
>>   File
>> "/root/instances/zope2.9/bpiDes/Products/CPSCore/setuptool.py",
>> line 224, in importProfile
>>
>>     result = self.runAllImportSteps(purge_old=False)
>>
>>   File
>> "/root/instances/zope2.9/bpiDes/Products/GenericSetup/tool.py",
>> line 248, in runAllImportSteps
>>
>>     message = self._doRunImportStep(step, context)
>>
>>   File
>> "/root/instances/zope2.9/bpiDes/Products/GenericSetup/tool.py",
>> line 716, in _doRunImportStep
>>
>>     return handler(context)
>>
>>   File
>> "/root/instances/zope2.9/bpiDes/Products/CPSSchemas/exportimport/ 
>> vocabulary.py",
>> line 56, in importVocabularyTool
>>
>>     importObjects(tool, '', context)
>>
>>   File
>> "/root/instances/zope2.9/bpiDes/Products/GenericSetup/utils.py",
>> line 748, in importObjects
>>
>>     importObjects(sub, path+'/', context)
>>
>>   File
>> "/root/instances/zope2.9/bpiDes/Products/GenericSetup/utils.py",
>> line 744, in importObjects
>>
>>     importer.body = body
>>
>>   File
>> "/root/instances/zope2.9/bpiDes/Products/GenericSetup/utils.py",
>> line 509, in _importBody
>>
>>     raise ExpatError('%s: %s' % (filename, e))
>>
>> ExpatError: vocabularies/action_field.xml: not well-formed  
>> (invalid token):
>> line 11, column 47
>>
>> ###########################################
>>
>>
>>
>> The line in question is:
>>
>>
>>
>> <item key="Desempenno Profesional"
>>
>>     msgid="label_iav_desempProfesional">Desempeño
>> Profesional</item>
>>
>>
>>
>> Should I avoid non ascii characters and use them only in the i18n  
>> message?
>> Or is there another way to mend this ExpatError?
>>
>>
>>
>> Thank you very much.
>>
>> JoseLuis de la Rosa Triviño
>>  Becario Área de Sistemas de Información
>>  FUNDACIÓN IAVANTE
>>  joseluis.rosa at iavantefundacion.com
>>  Tel. 951 015 300
>>
>>
>>
>> Este correo electrónico y, en su caso, cualquier fichero anexo,  
>> contiene
>> información confidencial exclusivamente dirigida a su(s)  
>> destinatario(s).
>> Toda copia o divulgación deberá ser autorizada por IAVANTE.
>>
>> This e-mail and any attachments are confidential and exclusively  
>> directed to
>> its adressee(s). Any copy or distribution will have to be  
>> authorized by
>> IAVANTE.
>>
>>
>> _______________________________________________
>> cps-devel mailing list
>> http://lists.nuxeo.com/mailman/listinfo/cps-devel
>>
>>
>>
> _______________________________________________
> cps-devel mailing list
> http://lists.nuxeo.com/mailman/listinfo/cps-devel

-- 
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com




More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.