Azure / appcat-rulesets

Repository for maintaining Rulesets for Windup
Eclipse Public License 2.0
5 stars 7 forks source link

Running AppCAT under non-unicode environment with difficult double-byte characters will cause windup.js currption #183

Open KenChaoLee opened 8 months ago

KenChaoLee commented 8 months ago

When the source code contains difficult double-byte characters (Traditional Chinese: 許功蓋), there will be encoding collision issues during text encoding conversion (big5 to unicode). For example: When the source code contains the character 功 (with its corresponding big5 ASCII being (0xA55C)), due to incorrect handling of text encoding, it results in an extra "\" appended after the character in the windup.js file, subsequently causing an incomplete structure of the windup.js file.

From source code sample: \"messasge\":\"成功\"}"

AppCAT decomplied: ,\"messasge\":\"���\\"}