cancel
Showing results for 
Search instead for 
Did you mean: 

£ (£) symbol in web forms Tiny MCE editor

wilsonb
Champ on-the-rise
Champ on-the-rise
Hi, I’m trying to get the pound symbol (£) into a an embedded section of HTML in a web form. I believe that Alfresco uses Tiny MCE as the WYSIWYG editor. The issue I have is that at the moment if I enter a £ symbol in the Tiny MCE editor the web form (XSLT) converts it into £ in the final exported version (to the standalone deployment receiver) or to the one downloaded in the "View Details" page of the content. So then I tried to use the HTML code editor part of Tiny MCE and enter the encoded value. Unfortunately if I enter a £ or £ both of which are then converted back into £ symbols by the Tiny MCE when I click “Update”. It all looks ok in the embedded editor but when you export the content from Alfresco or download the content from Alfresco it shows up as £. It even shows up ok when you click on the file in the Alfresco's WCM "View In Browser" option, so it seems to get converted by something on a deployment/download. This means I’m currently stuck with the final version of the HTML with £.

I have entered all the other likely characters on the keyboard !"£$%^&*(){}:@~<>?-=[];'#,./ and they appear to work as expected. However as I will have content editors using Word to enter odd symbols i.e. ‘ or &#8216; then I may end up with more issues ‘ for example

Any ideas for a solution?
1 REPLY 1

wilsonb
Champ on-the-rise
Champ on-the-rise
Just a quick update and a workaround. The update is that I was wrong thinking it was converting out on deploy/download. It appears to be leaving the £ symbol intact when the source is deployed/downloaded (as seen in a text editor). Now for the work around, I have put the following lines in the XSLT in order to make it UTF8 encoded.


<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>

Oddly enough when I add the above text, Alfresco then adds it’s own line in above my one so it looks like this:


<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

I have added it and removed it from the XSLT in order to be sure it’s just happening when the lines are added. I don’t mind as it does not effect the running of the page but it seems a little odd to do this, it’s almost like it forgot until I have reminded it.