’ in content manager configuration shows as ? on webpage | Community
Skip to main content
Level 2
March 21, 2024
Question

’ in content manager configuration shows as ? on webpage

  • March 21, 2024
  • 1 reply
  • 875 views

I have a webpage (dynamic javascript page) that makes it possible to show and change the text in an email made with content manager.

In the client I for example write Hold ’n’ Win in the input field to create the text in an email and that works fine.

But when the same email is shown for edit in my webform the same text will show as Hold ?n? Win.

This happens regardless if the string was originally written in the web form or the windows client. It always shows correctly in the client and is correct in the email going out and is always wrong in the web form showing the same text.

 

I think it's some kind of encoding problem. But I can't seem to be able to fix it. Does anybody know why this happens and how to fix it?

 

Simplified code in Dynamic javascript page that shows all the xml of the publication model (which also shows wrong):

<%
var jsspContext = new JSSPContext(request);
response.setContentType("text/html;charset=UTF-8");
var id = request.getParameter("id");
var D = new BusinessObjectWeb("nms:delivery", id, "nms:delivery");

//Load publication model
var pubModel = ncm.publishing.load('cus:pubModelName');
var configData = D.object.content.content[pubModel.schema_name];
%>
<textArea style="width:450px;" cols="50" rows="50" id="configXmlArea" name="configXmlArea" style="padding:0;margin:0;" accept-charset="UTF-8"> 
<%=configData%>
</textArea>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

ShashankNigam02
Adobe Employee
Adobe Employee
March 21, 2024

Hi @plundmark , Can you put logInfo and try to print the value in the logs. This will help you identify whether configData is having correct value and not displayed at the front end or it is returned incorrectly from D.object.content.content[pubModel.schema_name];

 

Hope this will help you identify the problem area.

PLundmarkAuthor
Level 2
March 21, 2024

Well, the log says ? as well. But it's clearly stored as ’ in the database since it displays as ’ in the client.

PLundmarkAuthor
Level 2
March 29, 2024

After a few minor changes I got the log to say ’ instead of ?.

But the textarea still says ?Any solution to this?