vite-plugin-compress icon indicating copy to clipboard operation
vite-plugin-compress copied to clipboard

cause unicode problem

Open webszy opened this issue 2 years ago • 8 comments

i use the vite2.6.13 and vite-plugin-vue2,1.9.0,the files parsed unicode problem,and cannot correctly display then output all the file just like this: �4�ŒÔV7„‰«î§î§•œõž@º�¿ÕaÑ9å´�y�K+��«†ÎÙ��¡ben÷.µÓƧ(&Žò�ªzU(�� Ñ�íP1gÛŽž� [rJ��Vð’��ƒk]/ó��r(ˆŸ!¢ÈJQì•ÿo#Áô�0ßUM5¾û™9�wU¬˜éØ*‰7”#!Z²�¹™�»I��^£Ô¤$¨yc�ëH¶6œ¤y7Û�¢eæ�«êj�:÷ëåö¹obSH;W{O£Õ…�P;bAHGQb]€�0—µ k45�X…!Å_�ihTQ¥0�’Í�õ&�'Y�+\°�L°Ú ɾ-1ðþ/NGõ8’|ú±×zøEÙ2MÒ²Œfe��ßO~�¤¹Ó»Ç‹é&œgp� °'Ğg�´Æë�_;#9º�.Æìº÷4�­F�£w®(×qh<ãøƒ�/�¼©}°/îým˜m‡ruoëH �"ƒ;”¥ªŠ0V�==hïC€’‘êPc…é½L�­IÖôé1„®«RÛ#©�9�PÕ©�žc�ÊÀê-кj€ø‘dãqÕ+ÆÏÇ4 ‹ÔÂ�PŠÄ²§cvÄM¾È�æô3×4p$Zëœp&^,{†±VÖT24oW?e=œú¸^ïh{¡='Eë)�¯;ãDõÈê•yéö…Ø{ám*¶�Ø3–aq­ZÇ…���}«hš®¶å‚Ù1Hi¶X:•í=³ÂgT�¥Þe‹�ÿ= c�“Þ�ÖÈ�¸®�Û»ÃbÉž…Ç�,Û,`��HøÛl‚xA3º�†�‡¤�Ÿ'|í7C:k�KŒñÈ&ˆ�t�Aë�÷�½+Z «CÅæ�ßëx,Y¶?â�e�¡ôš�òn ·±�IZá|µ,û8¼ò�! �7.D�Ge€BͫֆݪÓñt3�ÇĦû—��§=”�Q[.YÓtRÏÆuôïà�Àn�¯îa§²Ÿ

webszy avatar Nov 01 '21 13:11 webszy

I have met the same problem

manongLY avatar Nov 09 '21 02:11 manongLY

me too

tianjie326git avatar Nov 29 '21 08:11 tianjie326git

me too

DemonGao avatar Apr 06 '22 08:04 DemonGao

Me too.

Any idea how to fix this?

andrecasal avatar Apr 14 '22 12:04 andrecasal

If you want this fixed, fork this repo and implement a minimal reproduction in its ./demo folder. Thank you

aleclarson avatar Apr 15 '22 23:04 aleclarson

fwiw, same here. repo: github.com/gacallea/anerandros.info/

    "vite": "^2.9.7",
    "vite-plugin-compress": "^2.1.1"
import { defineConfig } from 'vite'
import compress from 'vite-plugin-compress'

export default defineConfig({
  plugins: [compress()],
})

gacallea avatar May 10 '22 14:05 gacallea

Got the same error, just installing compress and adding it to my vite project.

Makio64 avatar Jul 22 '22 01:07 Makio64

I get the same problem. Windows 10 node 16.17 vite-plugin-compress 2.1.1 vite 3.0.7

bestwestern avatar Aug 25 '22 10:08 bestwestern