Quantcast
Channel: ajaxmin Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 683

Edited Unassigned: CSS ASCII Encoding Error [21679]

$
0
0
Hi,

I have experienced an error relating to the CSS ASCII encoding.

I have changed the default encoding to ascii to avoid the well documented issue about converting "\e804" characters to "?" but now a space is added to the end of the character. Is this a bug or an issue my end?

#My code:

```
ajaxmin.exe TEST.css -out TEST.min.css -enc:out ascii -clobber
```

#Original CSS:

```
.icon-pencil:before
{
content: "\e606";
}
```

#Output CSS:

```
.icon-pencil:before{content:"\e606 "}
```

Please note the space at the end of the character code.

Regards,

Paul
Comments: ** Comment from web user: ronlo **

Correct, but only a _single_ trailing whitespace character is consumed after an escape sequence. So for an intentional space after your escape sequence, you could just as easily write it as:
```
.icon-pencil:before{ content : "\e606 " }
```
Hard to see, but note that there are _two_ spaces after the escape sequence. This is a two-character string: the Unicode escape sequence "\e606 " is one character, and the subsequent space (" ") is the second.


Viewing all articles
Browse latest Browse all 683

Trending Articles