google structured data testing tool displays question mark character instead of utf-8 characters - json-ld

After testing URL in the google structured data testing tool, I don't know why the question mark character is shown instead of utf-8 characters?
what is wrong? any help really appreciated.
the url is : link
and the result image:
The underlying json is:

don't know why, but the structured data tool doesn't understand your farsi. If farsi is an encoded javascript, like \u0645\u0648\u0633\u0633\u0647 - there is no problem. But if it is written like علائم تیروئید کم کار - something wired happens.
Fast and dirty solution: encode all of your structured data content as encoded javascript. In Notepad++ this makes a plugin named HTML Tag - then ctrl+j.

Related

how to render data generated by text-editor

I am using this (Tiny) text editor in the web platform. Able to integrate basic editor also
Now problem i am facing is how to render output html data(which is in the string format) like this
so output data in string format is like this :
please help me out to render this string formatted data in a separate block.
whole idea is like this i need a rich text editor like stackoverflow/medium and want to render the data in a separate location. I'm little confused about all this please help me out or suggest a better approach to handle this.

Logic app turn the binary to bad character

I created a logic app which gets the data from restapi. The content type of data is Application/protobuf(protobuf is a binary data made by google https://developers.google.com/protocol-buffers/docs/tutorials) I know that LA uses base64 encoding so it changes the data to base64 encoding. As the data to be deserialised via protoc complier so it needed binary format. So i store this data into a variable and trying to paas this further processing. But unfortunately the data stores in variable changes into boxes and ? So protoc compiler fails to deserialised the same.
I tried base64tobinary and http() as per suggestion mentioned section "other content type" on microsoft https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-content-type#applicationxml-and-applica...
But it did not work. Can anybody help on this?
I tried reproducing the issue and found that the rest API body which we are receiving will be transformed back to string when we use string() i.e.. string(triggerBody()) dynamic expression.
Later, I convert to binary by using the dynamic expression 'binary', i.e. 'binary(outputs('Compose')', which will return a 'application/octet-stream' result. When I tried to convert back to a string, everything worked great for me.
Here is the flow of my logic app
and here is the output
I have changed the way of using. Instead of streaming, I am storing the data into file and processing further.

How can I parse a RTF string to JSX or HTML

I have a rtf string format that looks like this.
{\\rtf1\\ansi\\b hi there\\b0}
How can I parse this in react/javascript for it become like this:
<p><strong>hi there</strong></p>
I have already tried using draft.js but It seems i cannot parse the format I have mentioned above. I also tried using regEx, but I seems its not that reliable I have other rtf formats that seems quite complicated. I want this to be in html format or just a simple clean plain text/string.
I also checked rtf2html package but, it seems to be a standalone tool.
My situation is the rtf string is coming from an api. and I need to parse it to make it visible in my app.

How blog contents are stored in database?

I have a doubt in creating a blog. Take stackoverflow.com as example, In this, ask question or answer segment have a WYSIWYG like editor. If i use some href link or other html tags within my answer how the data format stored in database(In HTML or plain text or any other).
In case data is stored in HTML format, then how it is converted simple json for connecting with mobile app webservice's.
In simple question, In which format user data is stored in database and how it is used for further processing.
I'm not sure how it works on Stack Overflow, but I think the text is stored in database in plain text format but with special characters like:
[link](http://example.com); _italic_; **bold**
And then these symbols are replaced with actual markup

Can you test foreign language strings like Arabic or Russian?

My website has the ability to be viewed in different languages. Is it possible to use sendKeys with a var that looks like this:
var arabic = "صباح الخير
I have tried using:
element(by.css(...)).sendKeys(arabic);
however question marks are the only characters sent to the text box.
Is this possible?
From Protractor point of view, if you see only ??? in input or whatever you are filling the extended chars in, it is probably a bug in that webpage, because generally sendKeys('باح الخير') works absolutely fine.
By the way, silly question, but have you tried pasting those extended chars to input directly, without protractor?

Resources