How To Replace Carriage Return In Text (Doc ID 533829.1)

Last updated on MARCH 02, 2017

Applies to:

Siebel Tools - Version 7.5.2.216 [16084] to 8.1.1 [21112] [Release V7 to V8]
z*OBSOLETE: Microsoft Windows 2000
Product Release: V7 (Enterprise)
Version: 7.5.2.216 [16084]
Database: Oracle 9.2.0.2
Application Server OS: Microsoft Windows 2000 Advanced Server
Database Server OS: Microsoft Windows 2000 Advanced Server

This document was previously published as Siebel SR 38-1371969275.

"Checked for Relevance on 03-July-2013"


Goal

We have a few multi line text boxes that allow carriage returns. The values in these text boxes are integrated with SAP and can have unicode values. If a carriage return is sent to SAP in one of these fields then processes on the SAP side fail.

How to replace the carriage returns with spaces?

Cannot use string.replace due to the product defect with unicode characters. Tried parsing the line by using IndexOf, but cannot figure out how to identify the carriage return and replace it?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms