Le 12-06-20 06:16, Александр Орефков a écrit :
2012/6/20 Lluís Batlle i  Rossell <vi...@viric.name>:
>>
>> yes, that has been reported before. It's quite easy to count utf-8... but maybe
>> not everyone uses utf-8.
>>
>> Should we add a 'setting' for 8-bit or utf-8 characters?
>
> In Fossil in web pages header set utf-8 code page, so not utf-8 file
> text with non ascii characters anyway will be broken.
> And you need set code page for page in browser for correct view.
>
> Then it is better to have the ability to specify the encoding for the
> entire site

But I guess this would not simplify the sbsdiff alignment stuff. It would
need to support multiple type of encoding to count caracters. And what
if there's files of different encoding inside a repo. I guess keeping the
site only in utf-8 make it more simple. Anyway ascii is compatible with
utf-8.

If there's some need to support more encoding, a prior conversion to
utf-8 could be used, so same sbsdiff diff code could be used when
generating diff page.

And a utf-8 on/off flag could speed up (a little bit) for people
that only use plain ascii but it would not be necessary.

That's just my opinion, I'm not an expert in encoding.

--
Martin G.

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to