-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DYN-6569 Extended Characters Md2HTML Fix #15377
DYN-6569 Extended Characters Md2HTML Fix #15377
Conversation
When sending extended characters to the Md2HTML tool (using stdin and stdout) was replacing the characters by other weird symbols then for fixing this problem I'm encoding the info to base64 when sending and decoding the info when getting the html (from Md2HTML).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-6569
UI Smoke TestsTest: success. 11 passed, 0 failed. |
Moved methods DecodeHTMLContent and DecodeBase64 to the Md2HTML class (I had to convert the methods to be static). Added comments in the EncodeBase64 method. In the DecodeBase64 method the Catch section was updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending a comment and a potential test case
I've added a unit test that validates that the extended characters are processed correctly by the Md2Html.exe tool. Also I've modified some methods in the Md2Html.cs file to be static
When running the test it was trying to read the files from a specific language location but that location doesn't exist when running the job so I copied the md file to a different location and modified the test to use this new location.
After debugging more and inserting logs inside the Md2Html.exe tool I notice that at the beginning when chosing the UTF-8 Encoding we were sending some weird characters so instead of using == now I'm using .Equals(). So I deleted the previous code for encoding and decoding the content and set to create the process with UTF-8.
I've removed the code for encoding and decoding so this tests should be passing and also the test that I added. |
Removing unnecessary usings.
Fixing test for parsing the html content with regular expressions
Purpose
Fixing problem when displaying extended characters in DocumentationBrowser
When sending extended characters to the Md2HTML tool (using stdin and stdout) was replacing the characters by other weird symbols then for fixing this problem I'm encoding the info to base64 when sending and decoding the info when getting the html (from Md2HTML).
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Fixing problem when displaying extended characters in DocumentationBrowser
Reviewers
@QilongTang
FYIs
@mjkkirschner