Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Proxy resolution/URI issue with German characters while using cross-document references
Proxy resolution/URI issue with German characters while using cross-document references [message #430501] Mon, 25 May 2009 13:25 Go to next message
Artun Subasi is currently offline Artun SubasiFriend
Messages: 20
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------000709010503040702090700
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

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
Re: Proxy resolution/URI issue with German characters while using cross-document references [message #430509 is a reply to message #430501] Mon, 25 May 2009 15:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080704080801060404050306
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

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


Ed Merks
Professional Support: https://www.macromodeling.com/
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 Go to previous message
Artun Subasi is currently offline Artun SubasiFriend
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.
>>
>>
>>
>>
>> ------------------------------------------------------------ ------------
>>
>>
>> ------------------------------------------------------------ ------------
>>
>>
>> ------------------------------------------------------------ ------------
>>
Previous Topic:Generating Root Package for multiple xml schemas
Next Topic:[CDO] Model to file on server
Goto Forum:
  


Current Time: Fri Sep 20 22:15:49 GMT 2024

Powered by FUDForum. Page generated in 0.02751 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top