Hi there,
I had a odp data source which is based on a cds view and found that there is a field in the source table containing garbled/incorrect characters.
e.g.
1. Pr㭃�nerfassung
2. Prüfdatenerfassung
I wrote a table function trying to replace these garbled with ''. see below the sql inside the table function.
e.g.
select replace_regexpr('([^[:ascii:]])' in zew_tran with '' occurrence all ) as ZEW_TRAN from sapf75.dctbw_transact_v where tmstmp = '20180702202450' and zew_date >= '20180601'
Besides this regular expression shown as above, I also tried below expressions:
[^\x00-\x7F]
[^[:ascii:]]
[^[:print:]]
[^[:graph:]]
[^[:alnum:]]
[^0-9a-zA-z\/\(\)\{\}]
however, none of them can handle the 1st example . the output result looks like below:
1. Pr㭃�nerfassung
2. Prfdatenerfassung
Can anyone help here?
Request clarification before answering.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.