Inconsistent behaviour (I think) with escaping of invalid characters. Select in MSSQLMS escapes fine but assigning to an xml typed variable fails.

-- How can I assign an xml typed variable and take advantage of the automatic escaping of invalid characters?
-- This query escapes the character fine in MSSQLMS
SELECT * FROM (SELECT CAST(0x1B00 AS NVARCHAR(128)) AS TestCharacter) MyTable FOR XML auto
<MyTable TestCharacter="&#x1B;" />
-- This fails in MSSQLMS and in a similar production procedure.
DECLARE @MyXml XML
SET @MyXML = (SELECT * FROM (SELECT CAST(0x1B00 AS NVARCHAR(128)) AS TestCharacter) MyTable FOR XML auto)
Msg 9420, Level 16, State 1, Line 2
XML parsing: line 1, character 30, illegal xml character
Scott Mitchell

Thanks for the reply. I looked at casting to varbinary but didn't want to cast the large strings that have these characters in them. Sorry for not mentioning that. My example above is simplified. The text isn't only in an attribute and can be quite large.
I want to be able to read the text by just looking at the xml. 
I really would like the escaped form:
&#x1B; for all the invalid characters. 
Scott Mitchell

Similar Messages

  • TS4268 I just downloaded the new iOS7 onto my iPhone 5 and now I can not get my iMessage to activate with my Apple ID! My iPad connected just fine but my iPhone won't. Please help

    I just downloaded the new iOS7 onto my iPhone 5 and now I can not get my iMessage to activate with my Apple ID! My iPad connected just fine but my iPhone won't. Please help

    I would go to Settings - General - Reset - and Reset Network Settings
    Try it again after the phone restarts

  • Hi I have a mac osx lion10.7.3 and i can't get my mail set up with a blue yonder.co.uk address inbox works fine but i can't get outbox to work will not send mail any idea's thank's

    Hi I have a mac osx lion10.7.3 and i can't get my mail set up with a blueyonder.co.uk address inbox works fine but i can't get outbox to work will not send mail any idea's thank's

    And, you are sure you have provided the correct username and password for you email account? I'm not familiar with Virgin media, so you might contact their tech support to find out why you are having a problem sending mail but none receiving mail. I assume your mail account has always been POP3 and not IMAP. Typically, the outgoing mail servers are not the same for the different types of account service.

  • I upgraded Lion recently to 10.7.3. Since that time I am having trouble with my wireless connection. All other devices are fine, but I keep losing the connection since the upgrade.

    Recently I upgraded Lion to 10.7.3. Since that time I have been having a lot of trouble with my internet connection. I keep losing the connect and have to go to diagnostics and turn it back on. Is anyone else having this problem?
    Thanks, Pat

    I'm afraid there are numerous threads on here discussing this problem. I posted in this one earlier that has a couple of suggestions, but the real solution will hopefully be provided in an update from Apple:
    https://discussions.apple.com/message/17589686#17589686

  • Value 'KIRBYu00A0' of characteristic 0SORTL contains invalid characters

    hello experts!
    i am facing this error while activating 0vendor. data not available either in info object master neither in psa.
    Error Message: Value 'KIRBY ' (hex. '004B004900520042005900A0') of characteristic 0SORTL contains invalid characters
    Message no. BRAIN060
    Diagnosis
    Only the following standard characters are valid in characteristic values by default:
    !"%&''()*+,-./:;<=>?_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.
    Furthermore, characteristic values that only consist of the character # or that begin with ! are not valid.
    You are trying to load the invalid characteristic value 1. (hexidecimal representation 004B004900520042005900A0).
    Procedure for System Administration
    Try to change the invalid characters to valid characters.
    If you want values that contain invalid characters to be admitted into the system, make the appropriate setting in BW Customizing. Refer to the documentation describing the requirements for special characters and the possible consequences.
    For more information on the problems involved with valid and invalid characters, click here.
    regards
    vijay

    Hi Vijay,
    after KIRBY is a characteristic value which cannot be interpreted by BW properply / is not in the valid char list.
    KRIBY is hex value 004B0049005200420059
    the invalid char is hex value 00A0  -> online hex converter didn't found a ASCI match.
    To solve the problem you will need to fix the record in the source. Or you go to PSA -> delete all in teh field and re-enter KRIBY.
    Best regards,
    Axel

  • Generating an idocxml file for matmas idoc,getting invalid characters in it

    HI
    i am generating and(ZMATMAS) idoc xml in a folder in R3 using the Port (No PI involve here).   and after generating the file SAP PI system will pick that file to process , but for some files,invalid characters like  oxb(vertical tab) are being passed due to which messages are failing in PI ,SO HOW I CAN AVOID GENERATING THESE INVALID CHARACTERS inxml file in R3.
    regards
    sandeep
    Edited by: pendyalas on Feb 2, 2011 10:48 PM

    >
    pendyalas wrote:
    > Thank you   , . i have one more concern how to type the invalid character ((0xb )vertical tab) while declaring them in table in we21
    >
    check out also the following SDN thread and OSS Note,
    Handling of 0xb character
    Google to find out how special characters can be entered.. There were some suggestions to press ALT and enter the four digit representation for the special characters (you can probably play around with it)...

  • ECC 6.0 VERSION UPGRADE - INCONSISTENCY BEHAVIOUR -MM - Reg

    Hai,
    We are in the process of ECC 6.O upgrade from ECC 5.0,
    we started the CT1/ CT2 testing and found the following error.
    While inwarding Material against Subcontracting purchase order / S.L.Agreement ,
    The system shows the error message of CHALLEN MATERIAL IS DIFFRENT FROM MATERIAL DOCUMENT , during GR
    note :- for the same material , same p.o , some times systems allows for GR & some times gives above error message.
    if i try with some other login , the behaviourseems to be same as my login
    Can anyone tell this why this inconsistency behaviour of system during GR for sub contracting item..
    Regards,
    Suresh.P

    go to SE38,  here type the program RM07CUFA,
    click on execute... type ur mov type 541... here make the purchase order field from display to optional..
               this will effected for new subcontracting scenerio....

  • Inconsistent Behaviour on executing Xquery on the container....

    I need some of the suggestions on the following BDB issue. Here I written the code to create the container, load the .xml file in to it with doc_id and opens the allready existing container. Here I am seeing inconsistent behaviour.
    Following are the Steps I followed...
    1. Created DbEnv class object .
    2. Opened the DbEnv using open methode with flags "DB_CREATE | DB_INIT_MPOOL".
    3. Created XmlManager class object with the flags "DBXML_ADOPT_DBENV | DBXML_ALLOW_AUTO_OPEN".
    Rest of the steps are mentioned in the code fragment..
    Class Definition is as follows...
    #include <dbxml/DbXml.hpp>
    using namespace DbXml;
    using namespace std;
    class BDBObject // Singleton class
    public:
    static BDBObject* instance();
    bool open_xml();
    bool close_xml();
    bool execute_xquery(const string & exp, string & response);
    ~BDBObject();
    private:
    BDBObject();
    static BDBObject* m_singletonObject;
    XmlManager *m_xmlManager;
    DbEnv *m_bdbEnv;
    XmlUpdateContext m_xmlUpdateContext;
    XmlQueryContext m_xmlQcontext;
    XmlContainer m_necbContainer;
    XmlContainer m_necbXmlContainer;
    bool BDBObject::open(bool flagEnabled)
    -------------- < code fragment for first 3 steps mentioned above> -----------------
    try{
    string containerName = "container1.dbxml";
    if(m_xmlManager -> existsContainer(containerName))
    [b]m_necbContainer = m_xmlManager -> openContainer(containerName); // Opening allready existing container
    else
    return false;
    if(flagEnabled)
    XmlUpdateContext updateContext = m_xmlManager -> createUpdateContext();
    m_necbXmlContainer = m_xmlManager -> createContainer("container2.dbxml");
    XmlInputStream *fileStream = m_xmlManager -> createLocalFileInputStream(filePath);
    m_necbXmlContainer.putDocument(fileDocId, fileStream, updateContext, 0);
    }// End of Try block...
    catch (XmlException &xe)
    cout<<"XmlException: "<<xe.what()<<endl;
    return false;
    return true;
    }// End of function
    bool BDBObject::execute_Xquery(const string & sExp, string & response);
    if(NULL == m_xmlManager)
    return false;
    XmlContainer *bdbContainer = NULL;
    if(flagEnabled)
    bdbContainer = &m_necbXmlContainer;
    else
    bdbContainer = &m_necbContainer;
    if(bdbContainer == NULL)
    return false;
    try{
    XmlQueryContext xmlQcontext = m_xmlManager->createQueryContext();
    string containerName = bdbContainer -> getName();
    m_xmlQcontext.setDefaultCollection(containerName);
    XmlQueryExpression xmlQExp;
    if(flagEnabled)
    xmlQExp = m_xmlManager -> prepare(sExp, xmlQcontext);
    XmlResults bdbResult = xmlQExp.execute(xmlQcontext);
    XmlValue bdbValue;
    while(bdbResult.next(bdbValue))
    response = response + bdbValue.asString();
    }// End of Try block..
    catch (XmlException &xe)
    cout<<" XML Exception: "<<xe.what()<<endl;
    return false;
    return true;
    }// End of function
    <---------------- Application ----------------->
    main()
    cout<< "In Application "<<endl;
    bool flagEnabled = false;
    BDBObject *obj = BDBObject::instance(); // Singleton Object Creation
    obj -> open(false);
    string xquery("");
    if(flagEnabled)
    xquery = "declare namespace HHP=\"HHP\";
    let $n := doc('container1.dbxml/<corressponding docId>')//HHP:hapCageTable
    return ($n);"
    else
    xquery = "declare namespace HHP=\"HHP\";
    let $n := doc('container2.dbxml/<corressponding docId>')//HHP:hapCageTable
    return ($n);"
    string response;
    obj -> execute_xquery(xquery, response);
    ---------- END -------
    Here when I make flagEnabled as false in the application & then compiled.. After execution of the application, I had got expected output.
    Use cases which i tested the application in sequence are...
    1. I make flagEnabled as false in the application & then compiled.. After execution of the application, I had got expected output.
    2. I make flagEnabled as true in the application & then compiled... After execution of the application, I had got expected output.
    3. I make flagEnabled as false in the application & then compiled... After execution of the application, I had got exception in the BDBObject::execute_xquery() function at the line "xmlQExp = m_xmlManager -> prepare(sExp, xmlQcontext);" and shows the exception as "Error: No such file or directory".
    4. If I execute once again the previous use case, then it works.
    5. Now I re-executed the use case 2, I had got expected output.
    6. Now I re-executed the use case 1, Here I am able to see the execption in BDBObject::open function at line "m_necbContainer = m_xmlManager -> openContainer(containerName);" and shows the exception as "Error: container1.dbxml: container file not found, or not a container".
    Please let me know some suggestions to proceed further on this issue..
    Thanks in Advance,
    Regards,
    Sravan.

    Sorry let me explain it clearly.....
    Input plain xml file:
    <bookstore>
    <book>
    <title>ALSB</tile>
    <price>100</price>
    </book>
    </bookstore>
    As we know $body points to root element of above input xml file
    1) My xpath/Xquery condition is --> data($body/book/price)>30 than I validated and tested with above xml input it returns true to me so I saved and activated my proxy.
    2) Now next step let me test proxy from proxy test screen for above input xml file, I clicked on test icon and inputted above xml file. But myxpath/Xquery condition in proxy fails and it goes to else condition.
    The strange part is, if I change my input file to
    <book>
    <title>ALSB</tile>
    <price>100</price>
    </book>
    Than above condition return true, why this is behaving like this
    Edited by prabhu_biradar at 11/18/2007 8:26 PM
    Edited by prabhu_biradar at 11/19/2007 6:10 AM

  • Hi. I have set up the trial versions of Photoshop CC 2014 and Lightroom 5.6 (ie the Photography plan) on a desktop that I have added a new drive to with Windows 7. Everything works fine BUT it is an old computer and I'm thinking that it may pack up unexpe

    Hi. I have set up the trial versions of Photoshop CC 2014 and Lightroom 5.6 (ie the Photography plan) on a desktop that I have added a new drive to with Windows 7. Everything works fine BUT it is an old computer and I'm thinking that it may pack up unexpectedly. These things happen. I want to sign up for the Photography plan but I also have a Windows Vista laptop, and that is old too so I may want to put the apps on a new desktop and a new laptop, having already installed on my desktop. That makes three activations. Am I allowed to do this? Cheers. Paul

    You cannot have three activations. It's simply not technically possible. If and when the time comes, you simply deactivate/ sign out on one of the old systems and install on the new one. If the system goes belly up, you contact support to reset your account. No need to make it more complicated than that and overthink it.
    Mylenium

  • Behaviour of AXIS with Spring and Java, in response to bad webservice call

    This is a stretch, but I wonder if you can help me - I'm new to this, and working in a project that has already been configured to work with Axis.
    We have a Java project built with the Spring framework, in order to provide webservices for access via SOAP. As I understand it (ie not very well!) Axis works to accept these SOAP messages from the client and transform them into calls on our Java methods, and do the reverse with the responses - cool! Which is excellent, and it works well with the config files we have already set up.
    But I have two problems/questions, which may well be related�
    2) In trying to test what exactly happens in which case, I sent some test messages to the service, and found that I could send incorrect parameter names, and sometimes the service still gets called! Axis seems to match the data it recieves to the parameters of the method in some clever way that I don�t understand. Sometimes this works, sometimes it shows a type error. But it seems to depend what parameter I rename as to what exactly happens, so the results are (superficially, at least) unpredictable! I'm sure this behaviour is configurable in some way, but I can't seem to find out how this is done. I'd like to make it so that missing parameters are passed into the method as nulls (as is happening now), but that badly named, duplicated or extraneous parameters are refused, with a specific errormessage stating what the issue is. Similarly, I'd like to reply with an explanatory message if a parameter is passed wth an incorrect type, rather than just a message "org.xml.sax.SAXException: Bad types" that does not detail which parameter is problematic.
    1) The client can receive a "500" response, with an "Internal Server Error" message, although I'm having trouble figuring out exactly when this happens. I'd like to be able to configure what message they receive, in order to give them more information about what they got wrong.
    I just don't know where to start with this - I'm sure there must be ways of configuring all this!
    As much info about an example of what I'm looking at as seems sensible follows. Please forgive me if I've used incorrect terminology somewhere! :)
    Thanks a heap,
    Tracey
    ======================
    So, let's say I have a Java class called DiaryService, with a method called createDiary that takes the appropriate data and returns a confirmation/error message - it starts like this :
        public String createDiary(final String library,
                final BigDecimal companyCode, final Date diaryDate,  final Date actionedDate,
         final String diaryMessage) throws RemoteException And another called GetDiary that returns a Diary as a SOAP bean which looks like this :
        public DiarySoapBean getDiary(final String library,
                final BigDecimal companyCode, final Date diaryDate) throws RemoteExceptionAxis very helpfully lets me access the createDiary and getDiary, by sending XML messages like this example:
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <ns1:createDiary soapenc:root="1" xmlns:ns1="http://localhost:8080/morph_zta/services/DiaryService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <library xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">ZRMORPHTA</library>
    <companyCode xsi:type="xsd:Decimal" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">1</companyCode>
    <diaryDate xsi:type="xsd:date" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">2007-01-01Z</diaryDate>
    <actionedDate xsi:type="xsd:date" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">2007-01-01Z</actionedDate>
    <diaryMessage xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"/>Blah blah blah</diaryMessage>
    </ns1:createDiary>
    </soapenv:Body>If I rename a parameter, the service may get called, with some other data in that parameter or not, or may not get called at all and the user get a "SAXException: Bad types" error message. I would like it to return a message stating that the parameter is not expected.
    If I duplicate a parameter, the first occurrence appears to be used, and the next ignored. I would like it to return a message saying tnat the extra parameter is not expected.
    If I add gibberish parameters, I get a "No such operation" message. I would like to be able to tell which parameters are incorrect.
    We have entries like this in web.xml:
        <listener>
            <listener-class>
                   org.apache.axis.transport.http.AxisHTTPSessionListener
         </listener-class>
        </listener>
        <servlet>
            <display-name>Apache-Axis Servlet</display-name>
            <servlet-name>axis</servlet-name>
            <servlet-class>
                   com.workingmouse.webservice.axis.SpringAxisServlet
         </servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>axis</servlet-name>
            <url-pattern>/servlet/AxisServlet</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>axis</servlet-name>
            <url-pattern>*.jws</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>axis</servlet-name>
            <url-pattern>/services/*</url-pattern>
        </servlet-mapping>     And these bits in our server-config.wsdd :
        <!-- Global config options -->
        <globalConfiguration>
            <parameter name="adminPassword" value="admin"/>
            <parameter name="attachments.Directory" value="./attachments"/>
            <parameter name="attachments.implementation"
                    value="org.apache.axis.attachments.AttachmentsImpl"/>
            <parameter name="sendXsiTypes" value="true"/>
            <parameter name="sendMultiRefs" value="true"/>
            <parameter name="sendXMLDeclaration" value="true"/>
            <parameter name="axis.sendMinimizedElements" value="true"/>
            <requestFlow>
                <handler type="java:org.apache.axis.handlers.JWSHandler">
                    <parameter name="scope" value="session"/>
                </handler>
                <handler type="java:org.apache.axis.handlers.JWSHandler">
                    <parameter name="scope" value="request"/>
                    <parameter name="extension" value=".jwr"/>
                </handler>
        <handler name="acegiAuthenticationHandler" type="java:{our}.AcegiAuthenticationHandler"/>
            </requestFlow>
         <responseFlow>
              <handler name="OutgoingSOAPMessageViewer" type="java:{our}.OutgoingSOAPMessageViewer"/>
         </responseFlow>
        </globalConfiguration>
        <!-- Handlers -->
        <handler name="LocalResponder"
                type="java:org.apache.axis.transport.local.LocalResponder"/>
        <handler name="URLMapper"
                type="java:org.apache.axis.handlers.http.URLMapper"/>
        <handler name="Authenticate"
                type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
        <!-- Axis services -->
        <service name="AdminService" provider="java:MSG">
            <parameter name="allowedMethods" value="AdminService"/>
            <parameter name="enableRemoteAdmin" value="true"/>
            <parameter name="className" value="org.apache.axis.utils.Admin"/>
            <namespace>http://xml.apache.org/axis/wsdd/</namespace>
        </service>
        <service name="Version" provider="java:RPC">
            <parameter name="allowedMethods" value="getVersion"/>
            <parameter name="className" value="org.apache.axis.Version"/>
        </service>
        <!-- Global config options -->
        <transport name="http">
            <requestFlow>
                <handler type="URLMapper"/>
                <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
            </requestFlow>
        </transport>
        <transport name="local">
            <responseFlow>
                <handler type="LocalResponder"/>
            </responseFlow>
        </transport>
        <service name="DiaryServices" provider="Handler" style="rpc">
            <parameter name="handlerClass" value="com.workingmouse.webservice.axis.SpringBeanRPCProvider"/>
            <parameter name="springBean" value="diaryServices"/>
            <parameter name="springBeanClass" value="uk.co.trisystems.morph.ta.diary.soap.DiaryService"/>
            <parameter name="allowedMethods" value="createDiary getDiary"/>
            <parameter name="scope" value="application"/>
            <beanMapping qname="ns:diary" xmlns:ns="urn:DiaryService" languageSpecificType="java:uk.co.trisystems.morph.ta.diary.soap.DiarySoapBean"/>
        </service>Cheers
    Tracey Annison

    Hi,
    I have solved the problem, I forgot a parameter in the select, so java tells the an error. But now I have another problem. The procedure doesn't execute the order by. I pass the couple column_name order_type in a string as ("provider_description desc") dinamically but the procedure doesn't execute the ordering. Why?
    Thanks, bye bye.

  • Custom Interface Program Errors out with ORA-01722: invalid number in R12

    Hi,
    We were upgrading to R12 in which our custom interface load program errors out with "ORA-01722: invalid number". Please find structure of control file as below :
    LOAD DATA
    APPEND
    INTO TABLE RRAT_RCAP_GIO_MAN_ADJ_STG
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED by '"'
    TRAILING NULLCOLS
    PERIOD_NAME CHAR "ltrim(rtrim(:PERIOD_NAME))"
    ,SOURCE_TYPE CHAR "ltrim(rtrim(:SOURCE_TYPE))"
    ,ADJ_ACCOUNT CHAR "ltrim(rtrim(:ADJ_ACCOUNT))"
    ,USD_NET                    INTEGER EXTERNAL
    ,ERROR_CODE CONSTANT 'LOADED DATA'
    ,PROCESS_FLAG CONSTANT 1
    ,CREATED_BY "fnd_global.user_id"
    ,CREATION_DATE sysdate
    ,LAST_UPDATED_BY "fnd_global.user_id"
    ,LAST_UPDATE_DATE sysdate
    ,LAST_UPDATE_LOGIN "fnd_global.login_id"
    ,REQUEST_ID "fnd_global.conc_request_id"
    =====================================Log file ================
    Record 1: Rejected - Error on table "XXATORCL"."XXAT_VCAP_GIO_MAN_ADJ_STG", column USD_NET.
    ORA-01722: invalid number
    ===================sample file ==========================
    JUL-11,Manual,8213-880011-00000000-259390-1Z-0000-0000,1001
    JUL-11,Manual,8213-880011-00000000-253701-1Z-0000-0000,73
    ==========================================
    I had tried with last successfully uploaded file as well which is also now not uploading.
    Please help me in this issue.
    Thanks,
    Piyush

    i am using R12 now. Please avoide INTEGER EXTERNAL part from the control file. please refer below :
    LOAD DATA
    APPEND
    INTO TABLE RRAT_RCAP_GIO_MAN_ADJ_STG
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED by '"'
    TRAILING NULLCOLS
    PERIOD_NAME CHAR "ltrim(rtrim(:PERIOD_NAME))"
    ,SOURCE_TYPE CHAR "ltrim(rtrim(:SOURCE_TYPE))"
    ,ADJ_ACCOUNT CHAR "ltrim(rtrim(:ADJ_ACCOUNT))"
    ,USD_NET
    ,ERROR_CODE CONSTANT 'LOADED DATA'
    ,PROCESS_FLAG CONSTANT 1
    ,CREATED_BY "fnd_global.user_id"
    ,CREATION_DATE sysdate
    ,LAST_UPDATED_BY "fnd_global.user_id"
    ,LAST_UPDATE_DATE sysdate
    ,LAST_UPDATE_LOGIN "fnd_global.login_id"
    ,REQUEST_ID "fnd_global.conc_request_id"
    ====================
    Srini,
    Just one thing i want to explain you that previously it was working fine but suddenly (might after upgrading in R12) started giving error. I had tested with old data files also which were loaded successfully in the system. but now it is giving error. Please help me in this issue.
    Regards,

  • Web Logic 10.3 upgrade causes issues with escaped characters in JSP.

    We recently upgraded our application servers from Weblogic 9.2 to Weblogic 10.3 and we are having an issue with escaped characters in a JSP code. Here is an example of what we are seeing:
    var convertedBody1 = document.getElementById('body').value.replace(/\$FIRST_NAME\$/g, firstName);
    This code works in Weblogic 9.2. In Weblogic 10.3 we have to make the following changes:
    var convertedBody1 = document.getElementById('body').value.replace(/\$FIRST_NAME\$/g, firstName);
    Thanks, Tom

    Hi:
    I have resolved the issue with the following in the jspx page.
    Put an
    <jsp:scriptlet>
    response.setContentType(“text/html; charset=UTF-8”);
    </jsp:scriptlet>
    Inside the <f:view> on the jspx file.
    Please refer the link http://www.oracle.com/global/il/support/tip/nlss11061.html for more details. It is helpful.
    Thanks & Regards
    Sridhar Doki

  • Renaming files with invalid characters in their names on NTFS partitions, introduced by operating systems other than Windows

    Essentially, Linux created some files with colons (:) in the name on a NTFS partition where I have Windows installed. I have since uninstalled Linux, but now I can only view these files in Windows Explorer. I can't open them, I can't even rename them to
    correct the problem. It's as if they don't exist, because of the invalid search paths.
    If I try to rename them in Windows Explorer I get following message.
    The file name you specified is no valid or too long.
    Specify a different file name.
    Well isnt' that something?... isn't that nice? Windows is able to display these files, but it doesn't allow me to open them and it certainly doesn't like me to rename them. So why is it whining about it then, when I'm trying to help? It says "try a different
    file name". Yeah, right! Like I haven't tried that one already! It doesn't matter what file name I input it will never accept it.
    So what am I supposed to do now? Ditch Windows and go back to Linux? Surely, Microsoft doesn't like the sound of that. Sure, I could reinstall Linux or run a Linux live system to correct the problem. But what good is Windows then? I might as well switch to
    Linux altogether.
    After doing some research I now know by fact that it's (kind of) possible to rename files from UNIX and UNIX-like operating systems to those compliant with Windows by using something called file name character translation. To some level this is essential and
    necessary for Windows interoperability with other operating systems (Windows is not the only operating system in the world). But this seems to be very complicated and I can't get my head around it. My brain is in overload. I don't know where to start.
    Once there was a...
    There's the Windows Services for UNIX (SFU) 1.0, 2.0, 3.0, 3.5. The first two versions were based on MKS Toolkit, a package licensed by Microsoft from MKS Inc. The later versions were based on the similar Interix product, after Microsoft purchased the company
    that made it.
    Then there's the new Subsystem for UNIX-based Applications (SUA). These are services for UNIX components. They are supposed to have Client for NFS v3 included as well. But the server components from the SFU line is missing (e.g. Server for NFS). These are included
    in Server editions of Windows.
    Then there's the Microsoft Knowledge Base article
    289627: "How to Enable File Name Character Translation". This article seems to describe exactly my situation.
    Windows and UNIX operating systems have restrictions on valid characters that can be used in a file name. The list of illegal characters for each operating system, however, is different. For example, a UNIX file name can use a colon (:), but a Windows
    file name cannot use a colon (:). If a UNIX user attempts to create a file with a Windows illegal character on a Windows Services for UNIX network file system (NFS) share, the attempt is unsuccessful and the UNIX client computer receives an input or output
    error.
    It goes further than that. At first glance, this KB article also seems to offer a solution to this exact problem, with examples as shown below.
    For example, the following maps the UNIX colon (:) to a Windows dash (-):
    0x3a : 0x2d ; replace client : with - on server
    I checked these values in charmap.exe and they are correct. Except for 2D not being a "dash", it's rather a hyphen ("hyphen minus" to be exact), but these two have pretty much the same appearance and they get interchanged a lot, I'm sure
    they are used to it by now. (Yes, the characters! They don't mind.)
    Then there's this registry key.
    HKEY_LOCAL_MACHINE\Software\Microsoft\Server For NFS\CurrentVersion\Mapping
    Well, of course, I don't have Server for NFS. So this is a dead end. Well, actually, it was a dead end from the beginning...
    1. First of all, I'm not working with a network share on a NAS or SAN storage. The files are on the local disk drive where Windows is installed, so that's a DAS for you.
    2. I don't have SFU! Well obviously, I'm on Windows Vista! So that means SUA!
    3. SUA are service components only. No server components. Can you guess what that means? Yeah... no "Server for NFS" since it's a server component.
    4. Windows Vista is a client side operating system! Server for NFS is only offered for use with Windows Server systems.
    5. Back to square one!
    So there you have it. They all lived happy for the rest of their lives...
    I'm stuck here. Can someone tell me what to do? I mean beyond the obvious option to use Linux to fixa a Windows problem? The NTFS file system itself supports colons in file names. It's Windows that doesn't, and so by default it proclaims it invalid character.
    Surely, even a Windows client operating system like Windows Vista should be able to allow the user to at least rename files with invalid characters to something more sensible (from the system point of view) and valid, if not being able to open them as they
    are. Just add some crazy voodoo code to it and it will work. If you can make it possible on Windows Server with UNIX user-mode subsystem on NT kernel, then what's stopping you from giving the Windows client system the same benefit?
    So what now? Purchase a Windows Server 2012 R2 license, copy my invalid files to a NAS share with NFS on a UNIX or Linux system, and have a go at the Windows registry and Server for NFS? Yeah... you're right, it's probably a bit over the top...
    On a second thought... I might as well install Linux again. There are countless situations where Linux has helped me solve problems related to, and more often than not caused by Windows.

    Essentially, Linux created some files with colons (:) in the name on a NTFS partition where I have Windows installed. I have since uninstalled Linux, but now I can only view these files in Windows Explorer. I can't open them, I can't even rename them to
    correct the problem. It's as if they don't exist, because of the invalid search paths.
    If I try to rename them in Windows Explorer I get following message.
    The file name you specified is no valid or too long.
    Specify a different file name.
    Well isnt' that something?... isn't that nice? Windows is able to display these files, but it doesn't allow me to open them and it certainly doesn't like me to rename them. So why is it whining about it then, when I'm trying to help? It says "try a different
    file name". Yeah, right! Like I haven't tried that one already! It doesn't matter what file name I input it will never accept it.
    So what am I supposed to do now? Ditch Windows and go back to Linux? Surely, Microsoft doesn't like the sound of that. Sure, I could reinstall Linux or run a Linux live system to correct the problem. But what good is Windows then? I might as well switch to
    Linux altogether.
    After doing some research I now know by fact that it's (kind of) possible to rename files from UNIX and UNIX-like operating systems to those compliant with Windows by using something called file name character translation. To some level this is essential and
    necessary for Windows interoperability with other operating systems (Windows is not the only operating system in the world). But this seems to be very complicated and I can't get my head around it. My brain is in overload. I don't know where to start.
    Once there was a...
    There's the Windows Services for UNIX (SFU) 1.0, 2.0, 3.0, 3.5. The first two versions were based on MKS Toolkit, a package licensed by Microsoft from MKS Inc. The later versions were based on the similar Interix product, after Microsoft purchased the company
    that made it.
    Then there's the new Subsystem for UNIX-based Applications (SUA). These are services for UNIX components. They are supposed to have Client for NFS v3 included as well. But the server components from the SFU line is missing (e.g. Server for NFS). These are included
    in Server editions of Windows.
    Then there's the Microsoft Knowledge Base article
    289627: "How to Enable File Name Character Translation". This article seems to describe exactly my situation.
    Windows and UNIX operating systems have restrictions on valid characters that can be used in a file name. The list of illegal characters for each operating system, however, is different. For example, a UNIX file name can use a colon (:), but a Windows
    file name cannot use a colon (:). If a UNIX user attempts to create a file with a Windows illegal character on a Windows Services for UNIX network file system (NFS) share, the attempt is unsuccessful and the UNIX client computer receives an input or output
    error.
    It goes further than that. At first glance, this KB article also seems to offer a solution to this exact problem, with examples as shown below.
    For example, the following maps the UNIX colon (:) to a Windows dash (-):
    0x3a : 0x2d ; replace client : with - on server
    I checked these values in charmap.exe and they are correct. Except for 2D not being a "dash", it's rather a hyphen ("hyphen minus" to be exact), but these two have pretty much the same appearance and they get interchanged a lot, I'm sure
    they are used to it by now. (Yes, the characters! They don't mind.)
    Then there's this registry key.
    HKEY_LOCAL_MACHINE\Software\Microsoft\Server For NFS\CurrentVersion\Mapping
    Well, of course, I don't have Server for NFS. So this is a dead end. Well, actually, it was a dead end from the beginning...
    1. First of all, I'm not working with a network share on a NAS or SAN storage. The files are on the local disk drive where Windows is installed, so that's a DAS for you.
    2. I don't have SFU! Well obviously, I'm on Windows Vista! So that means SUA!
    3. SUA are service components only. No server components. Can you guess what that means? Yeah... no "Server for NFS" since it's a server component.
    4. Windows Vista is a client side operating system! Server for NFS is only offered for use with Windows Server systems.
    5. Back to square one!
    So there you have it. They all lived happy for the rest of their lives...
    I'm stuck here. Can someone tell me what to do? I mean beyond the obvious option to use Linux to fixa a Windows problem? The NTFS file system itself supports colons in file names. It's Windows that doesn't, and so by default it proclaims it invalid character.
    Surely, even a Windows client operating system like Windows Vista should be able to allow the user to at least rename files with invalid characters to something more sensible (from the system point of view) and valid, if not being able to open them as they
    are. Just add some crazy voodoo code to it and it will work. If you can make it possible on Windows Server with UNIX user-mode subsystem on NT kernel, then what's stopping you from giving the Windows client system the same benefit?
    So what now? Purchase a Windows Server 2012 R2 license, copy my invalid files to a NAS share with NFS on a UNIX or Linux system, and have a go at the Windows registry and Server for NFS? Yeah... you're right, it's probably a bit over the top...
    On a second thought... I might as well install Linux again. There are countless situations where Linux has helped me solve problems related to, and more often than not caused by Windows.

  • Copying filenames with invalid characters in OSX

    I'd like to copy some folders for back up to an external hard disk from the internal hard disk on my G4. Problem is that some of the folders contain files were created in OS 9 and their filenames contain "/" symbols which apparently are not acceptable in OS X (10.3.9) which I am now running. After trying to drag the folders containing the files to the external hard disk I get an error message saying that they can't be copied because some of the filenames contain invalid characters. The problem files are scattered among files in many folders all over my G4's internal hard disk, and the task of finding and manually changing each one's filename is daunting. Is there a way to find and replace "/" with "." ? or some other more automated fix of the invalid characters? I'd prefer to keep the original files in their current folders on the G4. thanks
    G4   Mac OS X (10.3.9)  

    Does any of this software do what you want?
    (20586)

  • I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I tightened all HD screws and it didn't help. With the machine running and side of the case off, I physically stopped both the video card fan and the front case fan with my finger for a couple seconds and the noise continued. I also took all hard drives out one by one and rebooted each time. Again, the noise continued until I took out the Mac HD in Bay 1, rebooted, and I had a very quiet, silent machine. The issue is the hard drive in bay 1 that shipped with the computer, it's without a doubt causing the hum/woosh sound. I still need to know if I can safely swap the Mac HD from bay 1 to bay 4 without any issues to the operating system. I would like to try that to see if it dampens the noise but I also want to make sure this swap won't screw up my machine at all.

Maybe you are looking for