http://intertwingly.net/slides/2005/xmlconf/
이 슬라이드는 그냥 화면 아무데나 클릭하면 화면이 넘어갑니다.
trax님의 글을 보면
<?xml version="1.0" encoding="euc-kr"?>
이 잘못된 것처럼 설명되어있지만 제가 XML 스펙을 읽어본 바로는 잘못되었다는 점을 찾지 못하겠습니다. 물론 feedvalidator.org 에서는 이처럼 encoding=”foo”가 들어있을 때, foo를 쓰지 말라고 경고합니다. 이에 대해서 feedvalidator의 mailing list archive도 뒤져보았는데, 결론은 utf-8이 아닌 다른 인코딩의 경우 제대로 해석하지 못할 가능성이 있으므로라고 생각되는군요. 심지어 스펙에서 뭐라고 하든 utf-16도 쓰지 말고 호환성을 생각한다면 utf-8만 써라라는 식으로 말이죠.
링크한 글을 보아도
- XMLDeclEncoding was routinely ignored by most of the initial RSS parsers and even the initial UserLand RSS validator.
- “Aggregators” did the equivalent of strcat from various sources and left the results for the browser.
- The current beta OPML validator similarly ignores the encoding declaration.
라고 설명합니다. 결국 euc-kr 쓰는게 호환성을 떨어뜨려 삽질을 늘려줄 가능성은 높겠지만, 기술적인 측면에서만 말할 때, 잘못된 건 아니라는 생각이 드는군요.
Leave a Reply