Skip to content

Support unicode character for initcap function #13711

Description

@tlm365

Is your feature request related to a problem or challenge?

Make initcap function work with Unicode character.

Describe the solution you'd like

Current behavior of DataFusion:

select initcap('đẹp đẽ êm ả édouard'); --đẹP đẽ êM ả éDouard
select initcap('ñandú árbol éxito'); --ñAndú áRbol éXito
select initcap('олег иванович'); --олег иванович
select initcap('íslensku þjóðarinnar'); --íSlensku þJóðArinnar
select initcap('ελληνική επιστήμη'); --ελληνική επιστήμη

Expected behavior: (Postgres)

select initcap('đẹp đẽ êm ả édouard'); --Đẹp Đẽ Êm Ả Édouard
select initcap('ñandú árbol éxito'); --Ñandú Árbol Éxito
select initcap('олег иванович'); --Олег Иванович
select initcap('íslensku þjóðarinnar'); --Íslensku Þjóðarinnar
select initcap('ελληνική επιστήμη'); --Ελληνική Επιστήμη

Describe alternatives you've considered

No response

Additional context

Found in comment of @Dandandan

Activity

  1. tlm365 commented on Dec 13, 2024

    @tlm365
    ContributorAuthor

    take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions