Skip to content
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

Text Minifier calls to Ajax Min and replaces hex values #38

Open
philoushka opened this issue Jul 30, 2014 · 5 comments
Open

Text Minifier calls to Ajax Min and replaces hex values #38

philoushka opened this issue Jul 30, 2014 · 5 comments
Assignees

Comments

@philoushka
Copy link
Contributor

Repro:

  1. Get a bootstrap css. I got mine from bootswatch

  2. It's got selectors with hex values like this:

    .glyphicon-download:before {content: "\e026";}

  3. Run the file through the text minifier.

  4. Then find that selector, and find that the value of content is replaced by a square.

glyph out 2
(Notepad)

glyph out
(Notepad++)

Obviously the minifying is occuring in Microsoft.Ajax.Utilities.Minifier.MinifyStyleSheet(), and nothing to do with this application, but worth noting.

Is this an issue with the minifier or with the display of a char?
If so, how can we report it out?

The NuGet package is referencing Assembly AjaxMin.dll, v5.9.5229.26434

@sayedihashimi
Copy link
Member

No idea. @madskristensen any clue?

@madskristensen
Copy link
Member

It looks like an encoding issue. I'll take a look

@philoushka
Copy link
Contributor Author

The call to MinifyStyleSheet() shows in VS as:

capture

So it appears the minifier actually converts the hex values to the actual unicode character.

The minified string is then saved as UTF-8.

@sayedihashimi
Copy link
Member

I've assigned to @MKristensen since he is investigating.

@PrithviPalSingh
Copy link

Hi Team,

Any update on this issue, as i have encountered same issue recently.

Regards,
Prithvi Pal Singh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants