Ticket #2528033 (closed defect)

Reporter


Mithil Shukla
Opened: 04/19/10
Last modified: 12/12/12
Status: closed
Type: defect
Resolution: wontfix

Owner


Adam Moore
Target Release:
Priority: P3 (normal)
Summary: Special Charater gets truncated in YUI Compressor
Description:

Hi,
I am facing following issues with YUI Compressor
The Sepcial Charater like § µ ² ° are converted to space when i run the YUI compressor on UNIX machine.

Following is the UNIX command which is under for loop
java -cp scripts/yuicompressor.jar com.yahoo.platform.yui.compressor.Bootstrap --type js -o $config/gc_1_0/js/$js $_

The same command is working file in Windows machine.

Type: defect Observed in Version: 2.0
Component: YUICompressor Severity: S2 (high)
Assigned To: Adam Moore Target Release:
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

Adam Moore

YUI Contributor

Posted: 04/19/10
  • priority changed to P3 (normal)

Adam Moore

YUI Contributor

Posted: 04/19/10
  • status changed from new to infoneeded

Try setting the charset parameter to whatever the file is encoded in

Mithil Shukla

Posted: 04/20/10

I have done as what you have suggested but the still character goes missing (§, µ, ², °)
following is the line written for your reference

java -cp yuicompressor.jar com.yahoo.platform.yui.compressor.Bootstrap abc_interface.js --type js -o abc.js --charset utf-8

Platform used UNIX

Kindly let me know what else need to be done.

Adam Moore

YUI Contributor

Posted: 04/20/10
  • status changed from infoneeded to assigned

Please attach the file and I'll take a look. You can also try the latest source in github, which now defaults to utf-8.

Adam Moore

YUI Contributor

Posted: 04/29/10
  • location changed to Library Code

Jenny Donnelly

YUI Developer

Posted: 12/12/12
  • resolution changed to wontfix
  • status changed from assigned to closed

Thank you for your bug report. We are deprecating YUI Compressor in favor of yuglify. Please see our announcement for more information: http://www.yuiblog.com/blog/2012/10/16/state-of-yui-compressor/. We will consider migrating these legacy tickets to GitHub if there are community maintainers willing to step up and own them.