GithubHelp home page GithubHelp logo

Comments (4)

dwfreed avatar dwfreed commented on September 26, 2024

Charybdis doesn't attempt to process reverse DNS names, other than verifying that they match forward DNS. DNS will be ASCII for the foreseeable future, and charybdis abides by this by presenting hostnames in ASCII. Your hostname is in fact xn--y3haa.klined.me according to DNS, and Unicode is only accepted and displayed by end-user applications for convenience. If you'd like to see Unicode, you should complain to your client's developers instead.

from charybdis.

md-5 avatar md-5 commented on September 26, 2024

I disagree. xn-y3haa is NOT unicode. Charybdis should parse this into unicode before sending.

from charybdis.

dwfreed avatar dwfreed commented on September 26, 2024

No, it shouldn't. Many clients will assume that anything in prefix will be ASCII, resulting in breakage if it is not. Some IRCds allow Unicode nicks (Unreal does this with an extension), but most do not. As I stated already, your reverse DNS is xn--y3haa.klined.me, and your forward DNS is the same. DNS has no support for Unicode, which is why punycode is used in the first place. Attempting to process punycode opens up a large can of worms, and if not done correctly, DOS opportunities, for both clients and servers. Webservers and HTTP have no support for Unicode hostnames either, and you use punycode for Host headers and ServerName directives too. It's your web browser that shows you Unicode, which is the proper place for that to occur. Again, if you want to see Unicode, ask your client's developers to implement that, as it's not something that should be handled in Charybdis, in any way, shape or form.

from charybdis.

jillest avatar jillest commented on September 26, 2024

I agree that Charybdis should not interpret Punycode.

Charybdis should avoid sending bytes with bit 7 set as long as it is unclear how these bytes should be interpreted. UTF-8 is not the only option chosen by actual clients. If the bytes come from a client, it may be acceptable to pass them through, but if the outside world provides a us-ascii string, it would be unfortunate to change it to a string with bytes with bit 7 set without charset information.

from charybdis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.