Hi, Julian,

> "the standard encoding for Java is UTF-8 in Basic Authentication" - says who?
>
> I'd really like to know, because I plan to revise the RFC in the 
> not-so-distant future.

  I did a lot of tracing and source code reading and always found the 
String.getBytes("UTF-8") method call when strings had to be converted to byte 
arrays.

  One example is the method that Maven uses to encrypt a password via "mvn 
-ep/-emp": 
https://github.com/sonatype/plexus-cipher/blob/master/src/main/java/org/sonatype/plexus/components/cipher/PBECipher.java

   So this is just my experience which is, of course, limited. It just seems to 
me that many developers use this way to convert strings to bytes in Java.

   Go uses UTF-8 as its standard string encoding.

   Ruby's standard string encoding is UTF-8.


   Kind regards.

   Frank

> Hi, Julian,
>
>     sorry for not being precise.
>
>     RfC 7617 says that the encoding is unspecified. I know.
>
>     What I meant is that UTF-8 is (sort of) standard for the repo servers. 
> They are mostly written in Java and the standard encoding for Java is UTF-8 
> in Basic Authentication.

"the standard encoding for Java is UTF-8 in Basic Authentication" - says who?


I'd really like to know, because I plan to revise the RFC in the not-so-distant 
future.

>     FWIW, our repo server (which is Artifactory) expects UTF-8.

Best regards, Julian

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

________________________________

Pflichtangaben anzeigen<http://www.deutschebahn.com/pflichtangaben/20210430>

Nähere Informationen zur Datenverarbeitung im DB-Konzern finden Sie hier: 
http://www.deutschebahn.com/de/konzern/datenschutz

Reply via email to