#1115 closed defect (worksforme)
default_charset option not working
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | version control | Version: | 0.11 |
Severity: | normal | Keywords: | source charset unicode verify |
Cc: | tiger@…, dlin@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Source browser assumes the encoding of source codes is UTF-8. It would be nice if trac can auto-detect the actual encoding or use the config entry from trac.ini, and convert them to UTF-8 using iconv.
Attachments (0)
Change History (14)
comment:1 by , 20 years ago
Component: | general → browser |
---|
comment:2 by , 20 years ago
Priority: | normal → highest |
---|---|
Severity: | normal → critical |
comment:3 by , 20 years ago
Keywords: | charset added; browse encoding removed |
---|---|
Priority: | highest → normal |
Resolution: | → worksforme |
Severity: | critical → normal |
Status: | new → closed |
comment:4 by , 20 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Default_charset option is not working
Environment
- OS : RedHat 9
- Environment variable : LANG=ko_KR.eucKR
- Trac.ini :
[trac] default_charset = iso-8859-1
example
검색: Navigation twe로 로그인 로그아웃 설정 도움말 FAQ 접근성 Trac에 대해 위키 시간 순 이력 로드맵 소스 둘러보기 티켓 보기 티켓 등록 검색 Revision Log root/trunk/xdocs/회의록/2005010402 요구사항과 계획수립.txt View revision: Revision 2 (by twe, 01/10/05 17:34:48) 최초 임포트 ¡Ü À¯ÁîÄÉÀ̽º - ÀÎÅͺä´ë»óÀÚ : Áö¿¬½Ä, ÀÌÁÖ¿±, »çÀå´Ô, ±è°æÅÂ, ½Å¿ë¼ö, °Á¤¿Ï, ±èÀÎÈ£, ½ÉÁØÇö - ÀÎÅͺ丮Æ÷Æ® - »ç¿ø °ü¸® : Á¶Á÷µµ, »ç¿ø, ºÎ¼, ÀÎÁõ, ±ÇÇѼ³Á¤, ±ÙÅÂ, ÃâÅð±Ù, Á÷±Þ - Task °ü¸® (ÇöÀçÂÊÁö, À̽´°ü¸®, ÀÏÁ¤°ü¸®, ÀüÀÚ°áÀç Æ÷ÇÔ)
comment:5 by , 20 years ago
Summary: | Source browser should support other encodings than UTF-8 → default_charset option not working |
---|
Shouldn't you be using a default_charset
of euc-kr instead of iso-8859-1 there?
comment:6 by , 20 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
comment:7 by , 20 years ago
Component: | browser → changeset view |
---|---|
Resolution: | worksforme |
Status: | closed → reopened |
Version: | 0.8 → devel |
default_charset works for code browser but does not affect for changeset view. Native chars in diffs' display are jammed.
comment:8 by , 20 years ago
comment:9 by , 20 years ago
Cc: | added |
---|
comment:10 by , 19 years ago
Milestone: | → 0.10 |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
I believe this should now work correctly in 0.10.
comment:11 by , 16 years ago
Cc: | added |
---|---|
Component: | version control/changeset view → i18n |
Milestone: | 0.10 → 0.11.2 |
Resolution: | fixed |
Status: | closed → reopened |
Version: | devel → 0.11 |
I use trac v0.11 + mercurial + apache
I've set the apache's httpd.conf
PythonOption TracLocale zh_TW.utf8
And trac.ini [trac] default_charset = big5
It can't work, I remember it workable in 0.10, is that caused by genshi? Now, I can display Chinese in trac's page, but can NOT display source code which is big5 coded.
comment:12 by , 16 years ago
Component: | i18n → version control |
---|---|
Keywords: | unicode verify added |
Milestone: | 0.11.2 → 0.11.3 |
comment:13 by , 16 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
I just verified that Trac correctly displays big5 encoded files with default_charset = big5
.
I tested this with files both in a subversion repository and as ticket attachments.
Please reopen this if you still can reproduce this somehow.
comment:14 by , 16 years ago
Milestone: | 0.11.3 |
---|
TracIni has a default_charset option for this: