Hi, welcome to this forum!
Normally, this should not be a problem in R when using the correct functions and locales. However, to help you out, please give more details on your situation? The best way to help us and yourself is to provide a REPREX. Thanks.
JW