edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Sebastian Humenda <shumenda@gmx.de>
To: edbrowse-dev <edbrowse-dev@lists.the-brannons.com>
Subject: Re: [Edbrowse-dev] Edbrowse recognizing site as binary data
Date: Fri, 22 Jan 2016 18:13:05 +0100	[thread overview]
Message-ID: <20160122171305.GE2555@Kraftkrust> (raw)
In-Reply-To: <20160022093057.eklhad@comcast.net>

[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]

Hi,

Karl Dahlke schrieb am 22.01.2016,  9:30 -0500:
>> edbrowse https://portal.slm.tu-dresden.de
>> cannot browse a binary file
>> I presume that's a bug? Is there anything I can do to help resolving this issue?
>
>Not a bug technically, it's a feature not yet implemented.
>Save the data to a file and run /bin/file on it and get this
>
>HTML document, Little-endian UTF-16 Unicode text
Ah right.

>The problem is utf-16, which edbrowse does not recognize.
>This has been discussed on the group.
>It is very rare on the internet and becoming rarer still,
This is partially true. Especially for Asian languages, UTF-16 is a better
choice than UTF8. Not true for the above site though.
Anyway, there's
http://llvm.org/svn/llvm-project/llvm/trunk/include/llvm/Support/ConvertUTF.h.
That should provide a conversion function for both UTF-32->UTF-8 and
UTF-16->UTF-8 (together with the appropriate C file, of course). Wouldn't it be
easy to just detect UTF-16 and convert it to UTF-8 before doing anything else?

Cheers
Sebastian
-- 
Web: http://www.crustulus.de (English|Deutsch)  | Blog: http://www.crustulus.de/blog
FreeDict: Free multilingual dictionaries - http://www.freedict.org
Freies Latein-Deutsch-Wörterbuch: http://www.crustulus.de/freedict.de.html

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-01-22 17:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-22 13:01 Sebastian Humenda
2016-01-22 14:30 ` Karl Dahlke
2016-01-22 17:13   ` Sebastian Humenda [this message]
2016-01-25 12:39     ` Karl Dahlke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160122171305.GE2555@Kraftkrust \
    --to=shumenda@gmx.de \
    --cc=edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).