They are definitely spaces, thanks for the help everyone, I've got the ClientCo to assign a permie in the US to the issue, meanwhile the IT manager out here is going to try to extract the data from their AS/400 without the spaces and send it to me again to upload.
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Oracle double byte space...
Collapse
X
-
-
Comment
-
-
It was renamed iSeries in 2000, keep up grandad.Originally posted by stek View PostIBM i now....
Like calling your laptop now "an IBM PC compatible".Comment
-
Notepad ++ may tell a different story as eek has suggestedOriginally posted by WTFH View PostThey are definitely spaces, thanks for the help everyone, I've got the ClientCo to assign a permie in the US to the issue, meanwhile the IT manager out here is going to try to extract the data from their AS/400 without the spaces and send it to me again to upload.
The Chunt of Chunts.Comment
-
Comment
-
Offloading it to some poor sod not on cuk sounds like a far better plan and I heartedly approve of wtfh's approachOriginally posted by MrMarkyMark View PostNotepad ++ may tell a different story as eek has suggested
merely at clientco for the entertainmentComment
-
I copied your string into SQL Developer and those aren't spaces:Originally posted by WTFH View PostIt looks like this:
ド ||
Code:ド ||
(I've added a || at the end to make it easier to see)
Your string includes UNICODE characters:Code:WITH xyz AS ( SELECT 'ド ' txt FROM DUAL UNION SELECT '1 ' from dual UNION SELECT '2 ' txt FROM DUAL ) SELECT txt , LENGTH(txt) , RTRIM(txt) , LENGTH(RTRIM(txt)) , TRIM(txt) , LENGTH(TRIM(txt)) , ASCIISTR(txt) FROM xyz;
So the last character is a space but the rest of them aren't. You could include a REPLACE to remove those non-ASCII characters if that would help:Code:\30C9\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000\3000
Code:RTRIM(REPLACE(txt,UNISTR('\3000'),' '))Last edited by RonBW; 1 December 2016, 13:09.First they ignore you, then they laugh at you, then they fight you, then you win. But Gandhi never had to deal with HMRC
Comment
-
Ah, now that makes sense - Unicode character 3000 is an ideographic space. Tomorrow I will have a play in SQL.
Thanks!…Maybe we ain’t that young anymoreComment
-
Originally posted by WTFH View PostThey are definitely spaces, thanks for the help everyone, I've got the ClientCo to assign a permie in the US to the issue, meanwhile the IT manager out here is going to try to extract the data from their AS/400 without the spaces and send it to me again to upload.Originally posted by MrMarkyMark View PostThe other possible thing is he could have unknown characters in there, also.
I had this once and only realised they were there after I had looked at the data in a hexadecimal editor.
A little bit of advice............in future do yourself a favour and pay for the true professionals to come in, I'm quite cheap, all told, reallyOriginally posted by RonBW View PostI copied your string into SQL Developer and those aren't spaces
The Chunt of Chunts.Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Comment