Tom van der Woerdt drivers all time


 0 Collaborator

 1 Patch
e1dcf9396cb12d6aef0e9b961043c6ca55b2c882

e1dcf9396cb12d6aef0e9b961043c6ca55b2c882 | Author: Tom van der Woerdt <info@tvdw.eu>
 | 2020-07-01 19:00:35+02:00

    JAVA-2837: make StringCodec strict about unicode in ascii
    
    Somewhere between 3.x and 4.x the StringCodec implementation started
    using String.getBytes(charset), which has the caveat of translating
    unmappable characters into a charset-dependent replacement character,
    which for ascii is '?'. In other words, if you were to put unicode data
    into an ascii field, it will just insert a lot of question marks.
    
    With this patch the driver will throw an InvalidArgumentException if
    that happens.