AzureJobs icon indicating copy to clipboard operation
AzureJobs copied to clipboard

Text Minifier calls to Ajax Min and replaces hex values

Open philoushka opened this issue 10 years ago • 5 comments

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

philoushka avatar Jul 30 '14 16:07 philoushka

No idea. @madskristensen any clue?

sayedihashimi avatar Jul 31 '14 05:07 sayedihashimi

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

madskristensen avatar Jul 31 '14 12:07 madskristensen

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.

philoushka avatar Jul 31 '14 16:07 philoushka

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

sayedihashimi avatar Aug 01 '14 01:08 sayedihashimi

Hi Team,

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

Regards, Prithvi Pal Singh

PrithviPalSingh avatar Mar 07 '18 09:03 PrithviPalSingh