2
루비에서 비 분리 공간으로 문자열을 팽창시키고 수축시킬 때 이상한 문제가 발생했습니다. 일반 공백비 분리 공간이있는 Zlib
문자열은 예상대로 작동 그러나
str = "hello world"; str_zipped = Zlib.deflate str; str == Zlib.inflate(str_zipped)
=> true
,
str = "hello\xA0world"; str_zipped = Zlib.deflate str; str == Zlib.inflate(str_zipped)
=> false
이 예상되는 행동이나 버그인가?