When I view a certain webpage, the characters display properly as Chinese characters on the page. When I view the page source they look like this:
<div>又说:「我</div>
What encoding is this?
Related
I want to add some text (e.g. This is Computer Generated Bill) ONLY on LAST PAGE of Advanced PDF template in Netsuite; where content of page ends . Problem is as number of pages change, text occur on all pages or change its position. Unable to fix this issue.
If you are editing the xml of the freemarker template you can add a custom block of code as the last thing on the page. If you need to make it prominent you can center it and add a bunch of padding above it.
I've got a DB in Cinese and a cxGrid connected to it. The chinese digits are displayed as '?' in grid. I tied to change the grid's CharSet but had no success. Could you help me out, pleese?
In the rich text field I choose Full alignment, but when previewed the text has left alignment. When I close and reopen the document, the text is brought back to left alignment.
How can this be resolved?
If I understand you correctly, you have a Notes Form with a Rich Text field, in which you align the text "justified", as in the screenshot below:
But if you view that in a Xpage, the text is no longer justified, neither in the read-only rendering, nor in the edit-rendering with the CKEditor:
Alas, if you align the text justified via the CKEditor, it renders properly in the browser
with an "interesting" rendering in the Notes Client:
This is a "known" problem and in my demo case, the Xpages runtime engine even warns me about that:
"Saving this document will change its format from native Notes rich text to HTML. This may cause a change or loss of formatting if opened again in the regular Notes client."
The conversion of rich text to HTML and vice versa is not the whole problem, even though the message says that. There are also issues with repeated conversions back and forth changeing font sizes, loss of certain colors and styles, etc.
This is a long standing issue with Ben Langhinrichs, who documents that rather thoroughly and even sells an extension to handle that conversions better.
Hope this helps a little bit.
I am using v8.5.3 and in the All Properties of the CKeditor they have a property called 'htmlConversion Warning' that you can set to 'noWarning' which seems to prevent the Saving this document message mentioned above. Seems someone from IBM has taken a note from Microsoft on providing a solution. Now if only they would take a note from them on how to market the product.
I am very new to using this WMD editor. In a simple way, I am using this editor in my page using ASP textbox with a "wmd-input" class. It is perfectly behaving like a WMD editor.
But when I enter some data and do some formatting like bold, italic, etc. and read the editor's content from the server side, I can see the data in plain text.
Is there any way I can read the data as HTML formatted data?
QnaUserClaims.GoldBadgesCount = InsertedUserObj.GoldBadgesCount.ToString();
QnaUserClaims.SilverBadgesCount = InsertedUserObj.SilverBadgesCount.ToString();
QnaUserClaims.BronzeBadgesCount = InsertedUserObj.BronzeBadgesCount.ToString();
QnaUserClaims.Reputat
I have a Sharepoint list, where one of the columns is plain text - Description. When you edit a list item, Description field is normally a TextArea. I have it programmed that this TextArea is extended with JavaScript to accept rich text (html really), so I have my custom rich text field. The problem is that when I input the rich data everything looks fine but when I save the edited item and then display it, the text is displayed as plain text, not html, so instead of a bold text I get "< b >text< /b >". And I would like it to be displayed as html. What can I do with it?
Edit: I don't want to use the built-in editor, because I need some different behavious.
The code that reads in the text input from the form and saves it to the list will be doing a HTMLEncode operation that replaces
< with <
> with >
and so on (look at the source of the page after a save)
This occurs 'server side' so you won't be able to change this using JavaScript.
You've got two options I think
As F5 mentioned you can create a custom field type with your own behaviour for rendering and update. This is the 'correct' way to do this.
You could change your funky javascript to work on a rich text field, hack into the rendering of the built in RTE and replace it with your own.
Of cource as soon as you are taking input from a user and then rendering it back to your web page you open yourself up to all sorts of nasties such as Cross Site Scripting if you are not filtering out potential bad stuff (the very reason why the HtmlEncode is used) - less of a problem in a typical SharePoint site on an Intranet than a public facing site.
SharePoint supports rich text columns using its own in-built editor. You just have to change the column settings so it allows rich text.
If you are using a JavaScript editor because of browser compatability with the built-in rich text editor then SharePoint will always strip the html from whatever is entered as it expects the input to be plain text.
Re your comments
If you want the field to display in rich text it needs to be a rich text field, by setting it to plain text you are always going to lose your custom formatting.
You need to look into custom field types
So where exactly are the data being displayed incorrectly: on the List Display Form or on a Page Layout? If it's on the Page Layout the fix is easy: create a custom Field Control which will retrieve the value of the field (like SPContext.Current.ListItem["YourField"]) and decode the contents to get HTML instead of encoded HTML entities.