|
|
SOLVED: Proxy resolution/URI issue with German characters while using cross-document references [message #430529 is a reply to message #430509] |
Tue, 26 May 2009 06:46 |
Artun Subasi Messages: 20 Registered: July 2009 |
Junior Member |
|
|
Thanks Ed,
Adding (XMLResource.OPTION_ENCODING, "UTF-8") to the save options map
solved the problem.
Ed Merks wrote:
> Artun,
>
> Comments below.
>
> Artun Subasi wrote:
>> Hello,
>>
>> I encountered a problem in our application while creating and loading
>> some elements. Our simplified ecore model is like this:
>>
>> Repository -> CoreComponent
>>
>> -> is a one-to-many reference which is not a containment reference.
>> Repositories have their own resources. CoreComponents also have their
>> own resources, as well as directories within the repository directory.
>>
>> The problem appears if I use some German characters (or to generalize,
>> non standard characters) like ö, ä, ü for the CoreComponent directory
>> name. (The structure of the Repository directory is also in attachments)
>>
>> I have a CompositeEMFOperation which creates all directories,
>> resources etc. The operation runs successfully, the resources and
>> directories are created fine. If I use öö as directory name, the XMI
>> file looks ok:
>>
>> <?xml version="1.0" encoding="ASCII"?>
>> <...Repository>
>> <coreComponents href="öö/corecomponent.xml#/"/>
>> </...Repository>
> You need to use something like UTF-8 or an encoding (some ISO latin
> thing) that accepts the characters you're using. I don't think ASCII
> works outside the range of 127.
>>
>> However, when I load the repository resource. The proxy URI is kind of
>> corrupt. I attached a screenshot from the debugger. The URI looks like
>> the following:
>>
>> eProxyUri: platform:/resource/ra/??/corecomponent.xml#/
>> Instead of öö, I get some box-like characters. I typed ?? here.
> Probably it's best to use UTF-8.
>>
>> Therefore, I cannot resolve the CoreComponent from the Repository
>> object. I couldn't figure out whether this is a bug, or if I did
>> something wrong.
>>
>> Regards,
>> Artun Subasi
>>
>> P.S. I can create a Repository which is named öö etc. I can save and
>> load it just fine. Only the cross references are problematic.
>>
>>
>>
>>
>> ------------------------------------------------------------ ------------
>>
>>
>> ------------------------------------------------------------ ------------
>>
>>
>> ------------------------------------------------------------ ------------
>>
|
|
|
Powered by
FUDForum. Page generated in 0.02751 seconds