Re: [U2] Special Character Handling

2011-01-12 Thread George Gallen
Depends on which special charactersIf you mean accented letters, I use a subroutine that converts the accented high ASCII code to it's non-accented letter. (EX. e' to e). Basically, it's just a bunch of converts. But it's good for converting data that was entered via a website text

Re: [U2] Special Character Handling

2011-01-12 Thread mhilbert
I know I'm not answering the original question Is there a tool , but if the validation is on-line, it would be best to manage a list of valid characters, rather than do converts of specific characters. Bearing in mind that users can copy-paste into your input field, or type Alt+nnn you can

Re: [U2] Special Character Handling

2011-01-12 Thread Mark Eastwood
I've used the OCONV to remove non-printable (control) characters; actually it doesn't remove them just replaces with a period . ITEM=OCONV(ITEM,MCP) Mark -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Ron

Re: [U2] Special Character Handling

2011-01-12 Thread Drew William Henderson
Something we used on our old ERP system was to define all valid characters, and use this against a copy of the input string to remove all valid characters, then use the remaining string (if anything remains...it's not valid) against the original input string. HTH Drew -Original

Re: [U2] Special Character Handling

2011-01-12 Thread Steve Romanow
I think I have seen where user submitted csv files have been good until one of our team opened it for further processing in Excel, and autocorrect took over and turned cafe and other words into alternate spellings. If you have a similar workflow, make sure the team members doing this

Re: [U2] Special Character Handling

2011-01-12 Thread George Gallen
I think that's clippy's revenge! -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users- boun...@listserver.u2ug.org] On Behalf Of Steve Romanow Sent: Wednesday, January 12, 2011 9:06 AM To: U2 Users List Subject: Re: [U2] Special Character Handling I

Re: [U2] Special Character Handling

2011-01-12 Thread Jeff Schasny
I don't know of an existing tool, probably because it depends on what you consider a 'special' character. Are line feeds and carriage returns OK? How about tab? If you only want 'printable' characters then loop through each character in the file: IF SEQ(CHARACTER) 31 AND SEQ(CHARACTER)

Re: [U2] Special Character Handling

2011-01-12 Thread Symeon Breen
Heres a couple of subs i use to uri encode - but you can easily change them to do whatever you want with certain characters 001:SUBROUTINE URIENCODE(url) 002: * Sub to uri encode a url 003: 004:max=LEN(url) 005:newurl='' 006: 007:FOR i = 1 TO max 008: thischar =

Re: [U2] UV 11.1 and HP Itanium

2011-01-12 Thread Terry Stennette
Richard, We have a customer reporting the error below running UV 11.1 on Itanium 11.31. So far it has been an isolated incident ( 2 times) . This error on Unidata typically Indicates you need to increase SHM_GPAGESZ. However in this case it occurred when a user was simply trying to Login

Re: [U2] Special Character Handling

2011-01-12 Thread FFT2001
I would suggest this IF String # Oconv(String,MCP) then End This will quite quickly tell you *whether* any given string has a non-printable char in it. It is the fastest known method to give you this Boolean result. Then use the INDEX function to return the absolute location of any .

Re: [U2] Special Character Handling

2011-01-12 Thread George Gallen
Which characters does it consider invalid? Just 32 and 128? I use the following: (It's missing a few accents, I need to update it when I find some time) I think I'll add Will's piece to the end to see if I missed any however. SUBROUTINE REMOVE.IIT.ACCENT(INDATA,OUTDATA) *

[U2] UV User Logout

2011-01-12 Thread Bill Brutzman
When one user here logs out via Dynamic Connect on HP-Ux 11i v2 running UV 10.3.6, she gets the following screenful... mkpath: SAVEDLISTS/S.maryann.13 is not a directory mkpath: SAVEDLISTS/S.maryann.13 is not a directory . . mkpath: SAVEDLISTS/S.maryann.13 is not a directory MaryAnn is setup

Re: [U2] UV User Logout

2011-01-12 Thread Richard Lewis
Bill, It looks like it's trying to write out maryann's command stack. SAVEDLISTS is apparently setup as a Type 1 file, and since maryann's stack key is longer, it's trying to create a sub-directory and write into it. It looks like maryann doesn't have appropriate prviileges to create the

Re: [U2] UV User Logout

2011-01-12 Thread Bill Brutzman
RL: Thanks for writing. ed VOC STACKWRITE 0001: X 0002: ON S.maryann.13 was found to be a file. I just renamed it to .13.BAK. Now MaryAnn's logout is clean. I want to keep the STACKWRITE setting intact since I use it and my boss uses it. Let's call this a victory. --Bill -Original

[U2] SB+ printer font changes

2011-01-12 Thread Lunt, Bruce
Hi All, I have a question about having the printer-font size switch to condensed when a SB+ report is sent to a laser printer (HP LaserJet) that is wider than 80 characters. I know that there is a SB+ user group but I cannot log into that from work and this is a work question. I was hoping that

[U2] Server Socket logic

2011-01-12 Thread Norman, David (Health)
I'm unsure on how I should structure the logic flow when opening a server socket (UV 10.0.16 HP-UX 11i). At present I start with initServerSocket in the setup phase of the program, and then wait on acceptConnection. If there's an incoming connection I do readSocket; after the data is read I do