Am 08.03.21 um 17:31 schrieb Peter Rader:
> Hi,
>  
> I try to support a emoji in a IDN. This is the head of my engine-config:
>  
>
>  <Engine name="Catalina" defaultHost="⚙.example.com">      <Realm 
> className="org.apache.catalina.realm.LockOutRealm">
>         <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>                resourceName="UserDatabase"/>
>       </Realm>
>       <Host name="⚙.example.com"  appBase="webapps"
>             unpackWARs="true" autoDeploy="true">
>  
> Both, HTTP and HTTPS connector have the UTF8 encoding:
>  
>
>   <Connector port="8080" protocol="HTTP/1.1"
>                connectionTimeout="20000" URIEncoding="UTF-8"
>             redirectPort="8443" />
>  
>     <Connector port="8443" 
> protocol="org.apache.coyote.http11.Http11Nio2Protocol" scheme="https" 
> secure="true" SSLEnabled="true" URIEncoding="UTF-8">
>             <SSLHostConfig truststoreFile="/example/.keystore" 
> truststorePassword="example" certificateVerification="optionalNoCA" 
> ciphers="TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
>  truststoreType="JKS">
>             <Certificate certificateFile="/example/cert.pem" 
> certificateKeyFile="/example/privkey.pem" 
> certificateChainFile="/example/chain.pem" type="RSA"/>
>         </SSLHostConfig>
>     </Connector>
>  
>  
> Unfortunately the browser-url redirect to the punycode xn--x7h.example.com in 
> Chrome, Edge and Firefox (did not test more).
>  
> How to remain with emoji IDN in the browser URL?

After a short look around the net, I think you will have no luck here,
as it seems to be a restriction posed by the browsers.

For Chrome you can read those restrictions at
https://chromium.googlesource.com/chromium/src/+/master/docs/idn.md

What I understood from that document, you have to stay close to actually
characters of your language (or at least stay with one language
(script)). Emojis are probably not yet recognized as a language :)

Felix

>  
> Kind regards
>
> Peter Rader
> --
> Fachinformatiker AE / IT Software Developer
> Peter Rader
> Wilsnacker Strasse 17
> 10559 Berlin - GERMANY
> Tel: 0049 (0)30 / 6 29 33 29 6
> Fax: 0049 (0)30 / 6 29 33 29 6
> Handy: 0049 (0)176 / 8 7521576
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to