|
Re: [Xpand] Encoding problem when linking or copying xpt tempates [message #729478 is a reply to message #729327] |
Mon, 26 September 2011 09:36   |
|
Hi Ali,
do you mean by linked file that the file does not exist in a project of your workspace? I usually set the file encoding of the Xpand project as project-specific setting.
Otherwise your workspace encoding must match the encoding of the Xpand template. You can set this in Window/Prefences/General/Workspace/Text File Encoding.
Kind regards,
~Karsten
Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
|
|
|
|
|
Re: [Xpand] Encoding problem when linking or copying xpt tempates [message #756745 is a reply to message #729936] |
Mon, 14 November 2011 21:33   |
Ali AKAR Messages: 31 Registered: July 2009 |
Member |
|
|
Dear Karsten,
The problem does not come from the linking of external files.
As xpt files contain specific characters they emerge the encoding issue
mentioned in my case, especially when sharing files between different
users.
To work properly, either by linking the file or by copying it, we should
detect the encoding of the file when created. So when a user A create a
file under windows, usually the default encoding is set to "Cp1252" then
if this file is sent to a different user B which work under MAC, the
default encoding is set to "Mac Roman". User B will be unable to read
the file correctly. To read it, he should set the file encoding to "Cp1252".
To resolved this encoding inconsistencies across platforms, I propose to
set the default encoding for xpt files on creation to UTF-8, or detect
it from the content like xml files.
Kind regards,
Ali AKAR
On 9/27/11 12:23 PM, Karsten Thoms wrote:
> Why do you need to link to external files? Use a project in your
> workspace that contains the template.
>
> ~Karsten
|
|
|
|
Powered by
FUDForum. Page generated in 0.01919 seconds