Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Doesn't like my charset
Doesn't like my charset [message #172138] Thu, 22 June 2006 18:48 Go to next message
Eclipse User
Originally posted by: michael.thebrewerfamily.co.uk

I'm trying to edit an html file that isn't intended directly for the web.
Instead, it's a template for another application (iView MediaPro) to use
to generate the final html. As part of the template, you can use certain
tags, which MediaPro substitutes with appropriate data when generating the
html.

One line that I use is as follows:

<meta http-equiv="content-type" content="text/html;
charset=(iView:HTMLCharset)"/>

So in the above, (iView:HTMLCharset) is substituted to arrive at:

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

Now, the problem is that the html editor in Web Tools doesn't like me
saying "charset=(iView:HTMLCharset)" -- the html template file doesn't
open properly in the editor (just shows a horizontal line and
"(iView:HTMLCharset)" under that), and if I try to cheat by copying and
pasting the text into a blank file, it does all show up OK, but it won't
then save.

Is there any way I can get around this, apart from stopping using the
MediaPro charset tag?

Thanks,

Mike
Re: Doesn't like my charset [message #172307 is a reply to message #172138] Sat, 24 June 2006 00:07 Go to previous messageGo to next message
David Williams is currently offline David Williams
Messages: 696
Registered: July 2009
Senior Member
On Thu, 22 Jun 2006 14:48:38 -0400, Michael Brewer
<michael@thebrewerfamily.co.uk> wrote:


>
> Is there any way I can get around this, apart from stopping using the
> MediaPro charset tag?
>

No, Michael. No way. I'm not sure why tag/value needs to be parameritized
like that,
but doesn't seem like "true HTML" that way. For example what _would_ be the
encoding of the template, before the parameter is "filled in". WTP and the
editors
would have to make some assumption which would seem hard to know what that
should be.

Overall, I'd that that template file whould have a different file
extension so its
not treated like "true HTML" ... but, I'd guess that would cause you to
lose some
funtion you really want (content assist, or something).

Feel free to open a feature request if you think this is a long term,
common need.
Re: Doesn't like my charset -- I take it back [message #172314 is a reply to message #172307] Sat, 24 June 2006 00:39 Go to previous messageGo to next message
David Williams is currently offline David Williams
Messages: 696
Registered: July 2009
Senior Member
On Fri, 23 Jun 2006 20:07:03 -0400, David Williams
<david_williams@us.ibm.com> wrote:

> On Thu, 22 Jun 2006 14:48:38 -0400, Michael Brewer
> <michael@thebrewerfamily.co.uk> wrote:
>
>
>>
>> Is there any way I can get around this, apart from stopping using the
>> MediaPro charset tag?
>>
>
> No, Michael. No way.

After I wrote my "no" response, I was thinking that really ought to work,
even
though we didn't plan on that kind of use-case.

If, while not open in an editor, you select the file, right click to
change properties,
and specify a specific charset to use for that file, then all the "peeking
in the file"
is skipped, and we just take your word for what ever you set in the file
properties.

Then you can change to the charset value in the meta tag to what ever you
like,
including (iView:HTMLCharset) and we won't care.

Glad we can still provide an HTML editor for your template :)
Re: Doesn't like my charset -- I take it back [message #172322 is a reply to message #172314] Sat, 24 June 2006 12:54 Go to previous message
Eclipse User
Originally posted by: michael.thebrewerfamily.co.uk

David,

Brilliant! Thanks for the change of heart; I am really grateful for your
response. Works perfectly now, even with dodgy html templates! I don't
do a great deal of development, just the odd tinkering in my spare time,
but I wish I had found eclipse webtools a lot earlier than I did! Still
very much finding my feet, though.

Cheers,

Mike
Previous Topic:Problem saving: "Character encoding not supported by this platform"
Next Topic:bottom up webservice tutorial with geronimo
Goto Forum:
  


Current Time: Mon Sep 22 18:17:37 GMT 2014

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

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