Error with extended characters

hi i have a problem with extended characters and it only happens when i have an attachment with the mail
MimeBodyPart bp = new MimeBodyPart();
String content = "� � � � � � � � � � � � �� � � � � � � � � � �  � �";
bp.setContent( content, "text/plain; charset=UTF-8" );
mp.addBodyPart( bp );
//code for adding a attachment is added to the mp using MimeBodyPart
msg.setContent( mp ); // add Multipart
msg.saveChanges(); // generate appropriate headers
ByteArrayOutputStream baos = new ByteArrayOutputStream();
msg.writeTo( baos );msg is a MimeMessage.
Now this msg is stored in a cache and later retrieved using
String s = "";
            java.lang.Object o = msg.getContent();
            if ( o instanceof String )
                s = (String) o;
            else if ( o instanceof Multipart )
                try
                    Multipart mp = (Multipart) o;
                    MimeBodyPart bp = (MimeBodyPart) mp.getBodyPart( 0 );
                    s = (String) bp.getContent();
                catch ( Exception e )
                    cLog.error(e.getMessage(),e);
            }now s contains "�€ �� �‚ �ƒ �„ �… �† �‡ �ˆ �‰ �Š �‹ �Œ �� �� �� �� �� �� �� �� �� �� �� �� ��" which is wrong.
This has been bugging me for a couple of days now.
could anyone please give a solution.
Many Thanks in advance

Using these literal non-ASCII characters in the string constant might
look great in your editor but might not be giving the correct Unicode
values. Try replacing the special characters with Unicode escapes
(\u####).
If that doesn't work, step through the original string and print out
each character as an integer. Then do the same for the string you
fetch from the message. Compare the integer values. If they're
not the same, post the details. If they are the same, the problem
is most likely in how you're displaying the characters you read
from the message.

Similar Messages

  • Working with Extended Characters

    I have CS3 on XP SP2
    In InDesign, both upper and lower case Pi show up amongst the other letters of the Greek Alphabet in fonts with extended character sets (Times or Arial). However, in Illustrator, the lower case pi is missing... it goes straight from omnicron to rho, skipping pi. I searched and finally found pi clustered with a select few "math" Greek symbols like sigma and mu. InDesign has glyph sorting options, but apparently not Illustrator. Is it possible to sort the glyphs by unicode in Illustrator to make it easier to locate certain characters?
    Also, the lower case pi I found in Illustrator had no unicode and it is not rendered in many of the fonts that do in fact contain a lower case pi, under Unicode U+03C0.
    Another related annoyance is that when I create a line of text (say in Times New Roman), I sometimes like to highlight the text and rapidly step through the fonts with the up and down arrows until I find one I like. This works fine in In-design and will show pink squares wherever a glyph is not supported by a font, but in Illustrator if the selected text contains certain extended characters, when I step to the next font in the list, the results can be unpredictable.

    In Illustrator CS3, I found that both Arial and Times New Roman have TWO lowercase pi characters in the glyphs panel. The first one, in the math chars near the top of the glyphs panel, says "No Unicode". The second one is lower down in the glyphs panel, after the Greek, after the Cyrillic, and before the Hebrew. It has the expected Unicode value U+03C0. I'm guessing this second pi with a Unicode value probably works better when changing to other fonts.

  • Batching 837P error with extended validation

    I am batching a 837P (multiple) using BizTalk 2010.  If I enable Extended validation in the agreement the batched message fails the send pipeline for the following 'Error details: Unable to read the stream produced by the pipeline.  Details:
    There was no XML start tag open'  From the looks of it the message has the following BOM (EF BB BF).  Upon emoving the Extended validation the batched 837 is created by the send port.
    Path;
    Receive file -> map to 837p -> write to folder using edi send (linked to party) -> edi receive with batching flag -> edi batching -> release batch -> write to final locationr using edi send (linked to party, filter to batched message) 
    With extended validation the initial 837p before batching are created just fine.
    Any help would be greatly appreciated.
    Thanks
    Tom

    Writing the unbatched 837s seemed to be the easiest option to add batching to the solution.  And we have other batching applications that follow the same (820)
    Thanks

  • JTidy with extended characters?

    Hi all,
    I've been using JTidy to tidy up html to valid xml, and it works fine, except when I have extended characters in the HTML.
    Has anybody else come across this problem? Is there any solution? JTidy doesn't look like its had any releases since 2001. Is there any other active projects that do the same thing?
    thanks,
    Justin

    Just looking at the input, and all extended characters are entities.
    So the input is:
    <html>
      <head>
      </head>
      <body>
        &#253;&#255;&#259;&#264;
      </body>
    </html>and the output is:
    <html>
    <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org" />
    <title></title>
    </head>
    <body>
    ��[][]
    </body>
    </html>where the "[]" characters represent a box. I.e. a character System.out.println can't render.
    If I look at the integer value of them, they are 3 & 8.
    So I guess I'm trying to turn off the entity replacement in the JTidy. Is this possible?
    thanks,
    Justin

  • Extended characters

    I previously used Dreamweaver 4 without CSS and then moved onto Dreamweaver 8, again without CSS. I am trialing Dreaweaver CS5 and have updated my site content to <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  from just <HTML>
    Extended characters such as e acute which used to appear correctly in earlier versions  of Dreamweaver, although they appear correctly in Dreamweaver Live View now appear rather differently in Internet Explorer 8 e.g an  e acute appears as A with a tilda followed by a copyright symbol.  How can I correct this please?

    Thanks John,
    Since reading your message I discovered that the error occured only where I had copied text with extended characters from another website and pasted it into mine.
    Best wishes,
    Brian

  • Internal Server Error while sending mail with extended property

    I am using EWS Managed API. I just started fiddling with Extended properties. So I wrote simple code to send a simple mail with extended property attached to it.
    Forming the mail part I simply copy pasted from this
    MSDN page. For testing purpose I suppressed certificate validations.
    This is my complete code:
    1 ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };
    2 service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
    3 service.TraceListener = new TraceListener();
    4 service.TraceEnabled = false;
    5
    6 service.Credentials = new WebCredentials("[email protected]", "password@123");
    7 service.Url = new Uri("https://exchng.domain.com/EWS/Exchange.asmx");
    8
    9 Guid MyPropertySetId = new Guid("{C11FF724-AA03-4555-9952-8FA248A11C3E}");
    10
    11 // Create a definition for the extended property.
    12 ExtendedPropertyDefinition extendedPropertyDefinition = new ExtendedPropertyDefinition(MyPropertySetId, "Expiration Date", MapiPropertyType.String);
    13
    14 // Create an e-mail message that you will add the extended property to.
    15 EmailMessage message = new EmailMessage(service);
    16 message.Subject = "Saved with extendedPropertyDefinition of two days";
    17 message.Body = "The expiration date is contained within the extended property.";
    18 message.ToRecipients.Add("[email protected]");
    19
    20 // Add the extended property to an e-mail message object named "message".
    21 message.SetExtendedProperty(extendedPropertyDefinition, DateTime.Now.AddDays(2).ToString());
    22
    23 // Save the e-mail message.
    24 message.SendAndSaveCopy();
    Please find the rest of the question in first reply, as I got "Body must be 4 to 60000 characters long".

    Rest of the question:
    I am getting below exception (with no nested inner exceptions) on line 24:
    An internal server error occurred. The operation failed.
    at Microsoft.Exchange.WebServices.Data.ServiceResponse.InternalThrowIfNecessary()
    at Microsoft.Exchange.WebServices.Data.ServiceResponse.ThrowIfNecessary()
    at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
    at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalCreateItems(IEnumerable`1 items, FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode, ServiceErrorHandling errorHandling)
    at Microsoft.Exchange.WebServices.Data.ExchangeService.CreateItem(Item item, FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode)
    at Microsoft.Exchange.WebServices.Data.Item.InternalCreate(FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode)
    at Microsoft.Exchange.WebServices.Data.EmailMessage.InternalSend(FolderId parentFolderId, MessageDisposition messageDisposition)
    at Microsoft.Exchange.WebServices.Data.EmailMessage.SendAndSaveCopy()
    If I comment line number 21, the code works fine and sends the message. So why it fails with extended properties?

  • Error in PSA with special characters

    Hello,
    I'm having a problem with sprecial characters in PRD system.
    This happen with standard extractor for Confirmations in SRM module, 0BBP_TD_CONF_1.
    I have 5 records with error in PSA. The field that have the error is 0bbp_delref and it has the text: “GUIA ENTREGA Nº2”.
    The error message says that field OBBP_DELREF has special characters that are not supported by BW.
    The field is char 16 and in spro I have the characters:
    QWERTYUIOPASDFGHJKLǪNºZXCVBM/~^´`* '()"#$%&!?.-0123456789«»<>
    In QUA, I created confirmations with this text and it worked fine and the characters in SPRO are the same.
    Any idea?
    Thanks and best regards,
    Maria

    Hi Maria,
    There will be no issue with update rules as the issue is with Data..
    ALL_CAPITAL should resolve your issue, .otherwise try individually executing those spl characters in RSKC..
    have you tried in SPRO...
    Check in this table RSALLOWEDCHAR in SE11 and find what all characters allowed(permitted)  in PRD system...
    please go through the above mentioned blog once
    Thanks,
    Sudhakar.

  • I am with error of special characters in the hour to matter given in BI 7

    Good afternoon, I am with error of special characters in the hour to matter given in BI 7
    <a href="http://img234.imageshack.us/my.php?image=erroau3.jpg" target="_blank"><img src="http://img234.imageshack.us/img234/4083/erroau3.th.jpg" border="0" alt="Free Image Hosting at www.ImageShack.us" /></a>

    OK....!!!!!
    just download the Excel file (*.xls) and try open with Word-MS. In the document search by the string that you have mentioned in the question. (Use Ctrl +F).
    If you see something like "ABC bla bla ba & instead of  &amp ,  then you have to pass the data through the code I've mentioned.
    You can get more details on encoding special characters UTF-8 in Google.com or Sun Websites etc.
    You can also encode the & in hexadecimal format to get the desired output.

  • "extended network" error with airport express

    i have my time capsule set up in my living room as the primary, and since there are several concrete walls in my house, i need to extend the wifi connection in order to get signal from my room which is located at the very end of my house.  I've had my airport express placed near the doorway of my room which should be getting a clear signal from time capsule in the living room.
    everything works fine for few days, and the blinking amber light started going off on the airport express.  and from the airport utility it shows 1 notification on my airport express.  It said an error of "extended network", if i choose to ignore it, the indication light turns back to green, but then i wont be able to connect to the internet.
    is there some kind of settings need to be adjusted?  please help~~~
    my settings on airport express:
    Router Mode: Off (Bridge Mode)
    Connect using: DHCP
    Configure IPv6: Link-Local Only

    i've tried to plug the airport express literally right next to the time capsule, and it still showing the "extended network" error message.  so it can't be the signal strength issue.
    Help please....
    additonal info:
    my time capsule (primary) :
    Connect Using - DHCP
    Router Mode: DHCP and NAT
    DHCP Range: 10.0.1.2 to 10.0.1.200
    my airport express (extension) :
    Connect Using - DHCP
    IPv4 Address: 10.0.1.10
    Router Address: 10.0.1.1
    DNS Servers: 10.0.1.1
    Router Mode: Off (Bridge Mode)

  • Vibe 3.2 problems with special characters?

    I'm not sure where the issue lies here, the client or Vibe, so I'll throw
    this out there to see if anyone has run into this problem. I have a user
    with a + sign in their password. If he tries to log in from either his
    Android phone or his Android tablet, he gets a bad password error. Using a
    different browser on the tablet, he was able to get logged in. Using my
    Android phone, he was also able to get logged in.
    Are there any known issues with Vibe not supporting certain browsers for
    special characters in passwords? I don't think he had the problem with Vibe
    3.1.
    thanks,
    Todd Bowman
    Senior Network Analyst
    University of Minnesota Physicians
    612-884-0744
    [email protected]

    Yes, you're right. Same issue here with a '' character. Found this:
    '6.2 Character Restrictions in Usernames and Passwords
    Do not use extended characters or double-byte characters in Novell Vibe usernames and passwords.
    This includes usernames and passwords that are synchronized from an LDAP directory into Vibe.
    This limitation is caused by the open source Spring Security (http://static.springframework.org/
    spring-security/site) that Vibe uses for authentication, in combination with the various authentication
    methodsboth basic authentication (http://en.wikipedia.org/wiki/Basic_a...authentication) and
    form-based authentication (http://en.wikipedia.org/wiki/Form_ba...tication)used by
    single sign-on products such as Novell Authentication Manager, by Web services, and by WebDAV.
    Only ASCII characters are properly interpreted in all combinations.'
    source: https://www.novell.com/documentation...dme_novell.pdf
    Extremely frustrating for anyone using strong passwords...

  • How to create users with i18n characters in SunONE directory server?

    Was trying to create users and groups with i18n characters in SunONE directory server
    1. Started LDAP console using -l option
    2. Chaged the Locale to Japanese
    3. Entered few japanese character as username (meaning internationalization user name)
    4. However, I could not able to type the password using the "soft keyboard" that comes with Japanese Locale
    5. to overcome with #4, for now, I typed english chars as the password
    6. Click OK to save the above username/pwd
    7. It says "netscape.ldap.LDAPException: error result (19); value of attribute "uid" contains extended (8-bit) characters"
    Has anyone ever created i18n user names in SunONE Directory Provider? Please help...

    Hi LostLad,
    Soryy for my ignorance...Could you please be elaborate on how to remove "uid attribute from 7-bit ASCII plugin?
    Thanks in advance..

  • Tabular model column rename with special characters - ), *, /, +, %, [ etc

    I am working in tabular model 2012. I have requirement to rename the column names with special characters like ), *, /, +, %, [ etc. When I try to rename in my model, it gives me below error:
    I also tried renaming the columns after creating a new test model with no luck. I may have lived with this error however we have another tabular model which contains special charaters in the name. This makes me believe that there must be some setting that
    I am missing.
    I tried changing the column name in other model having some special characters and it takes it.
    I have gone through this link#
    https://connect.microsoft.com/SQLServer/feedback/details/802009/ssdt-ssas-tabular-column-name-with-special-characters
    and
    http://msdn.microsoft.com/en-us/library/gg492144(v=sql.110).aspx which says that special characters are not allowed in column names however I am able to do it in one of our
    models then why not others.
    Any help is appreciated! Thank you for you time.
    If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".

    Well Mr. Google helped me.. I got the solution:
    Databases of a specific modality and compatibility level can have object names that include reserved characters. Dimension
    attribute, hierarchy, level, measure and KPI object names can include reserved characters, for tabular databases (1103 or higher) that allow the use of extended characters.
    How to change the compatibility, just right click on the .bim file from SSDT and go to properties and change the compatibility to 1103. 
    I hope this will help someone. :-)
    Useful MSDN Links: 
    http://msdn.microsoft.com/en-us/library/bb522632.aspx
    http://msdn.microsoft.com/en-us/library/jj674204.aspx
    If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".

  • How to create a view object and attach with extended AM

    Hi,
    I tried to create new vo and attach this vo with the extended AM. But it is throwing error like 'PC.NAME : invalid identifier' (Actually this PC.NAME is exiting one).
    Now i want to know how to create a view object similar like seeded one but with one additional condition in the where clause.
    It is possible though extension, but i want to create two view object similar like seeded one, one with some other condition in the where clause
    and another one with some other condition.
    So for my requirement, i'll extend one VO and i'll add my condition but how to do it for second condition.
    But i want same seeded VO with two different condition.
    Any suggestions please,
    SAN

    SAN,
    There is no need to attach the newly created VO with extended AM. You need to attach the same with the standard AM.
    Regards,
    Gyan

  • TIME_OUT error with /sapapo/rtsinput_cube

    We are in the process of cutting over to a new
    planning area ZPA2 with data from a backup InfoCube
    (ZIC21), and the /sapapo/rtsinput_cube program
    is failing with a TIME_OUT error.
    The overall job finishes with a success message,
    although data is only partially loaded in to the
    planning area. When you look at the spool, the first
    steps are green, then the job times out for the
    subsequent steps.
    We ran this first with 3 key figures being loaded
    from cube to planning area for approx 1/5 of 464000
    CVCs for 5 years in monthly buckets only.
    This errored with SAPSQL_INVALID_FIELDNAME message as
    well as the TIME_OUT error message, and data was
    loaded partially in the ZPA2 planning area (only 2
    months).
    We then reduced the time horizon from 5 years of
    months to be only 1 year in months.
    This errored with the TIME_OUT error message. Again,
    data was partially loaded in to the planning area
    (about 7 of the 12 months was loaded).
    The prime issue is with the constant time out.
    Has anyone any idea how to solve this problem ?

    not sure what version you are using but if you are on the latesr versions, its a good idea to use parallel processing - you can find it on the additonal settings tab
    you can also set it to copy only the specified period (previously it copied the whole bucket in the planning area to cover the time period)
    if you are in versions that dont support this - then you can create parallel jobs that get triggered by an event or use a process chain and run this in parallel. As long as you dont overlap the periods it should be fine
    you should also ask your basis team to check the time out set up for the application and get it extended (you can see this in rz11 i think and choosing the correct parameter - would leave it to the basis folks to help in this) Alternately check your processing power and see if you can get it increased

  • Problems with extended features.  I can no longer fill out my documents in the fields provided.  The

    Problems with extended features.  I can no longer fill out my documents in the fields provided.  The error message I get is "This document enabled extended features in Adobe Reader.  The document has been changed since it was created and use of extended features is no longer available.  Please contact the author for original version of this document."

    Yes.  I don't have the version you pay for.  I also tried the free version
    of EchoSign.  Maybe that caused the problem.
    Any more suggestions would be greatly appreciated.
    Estelle Oliansky
    Estelle OlianskyRealtor, SRESCell (734) 748-2329
    *3DX Real Estate *| www.3dxonline.com* | (v) 888.304.1447 ext.
    102 | (f) 888.304.1456 | 42705 Grand River Ave. Ste. 201 | Novi, MI 48375*
    P Please consider the environment before printing this e-mail
    This electronic mail message and any attachments contain information
    that(a) is or may be LEGALLY PRIVILEGED, CONFIDENTIAL, PROPRIETARY IN
    NATURE, OR OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) is intended
    only for the use of the Addressee(s) named herein.  If you are not the
    intended recipient, an addressee, you are hereby notified that reading,
    using, copying, or distributing any part of this message or any information
    transmitted herewith is strictly prohibited.  If you have received this
    electronic mail message in error, please contact us immediately and take
    the steps necessary to delete the message completely from  your computer
    system.

Maybe you are looking for

  • XI Adapter LOOP_IN_MESSAGE_ROUTING (Inbound service interface PI- ERP)

    Hello, my scenario: PI is sending some data via XI Adapter to ERP (SAP ECC 6.0). In PI SXMB_MONI shows us LOOP_IN_MESSAGE_ROUTING. Some points: - Proxy is generated and activated in ERP - ERP is type of LOC (application system) - Corresponding Integ.

  • Can't install lightroom 4 mac

    I am trying to install lightroom 4 on a imac9,1 os 10.6.8 and when I get to the screen that asks me to chose the hard drive it stops???

  • Primary and standby init file (switchove/failover)

    I have created standby database, its working fine, and logs are copying and being applied. I have successfully opened standby database in read only mode. Now I want to perform switchover and failover, please check parameters in init file that I have

  • Pacman on OSX

    Hello to all, How many of us have used MacPorts to get all the tools we need under OSX? How many have used Fink (I hope a bit less, 'cause Fink is based on apt - and for me it is a pain! - )? In both cases, we have to compile all things, with a lot o

  • Can any other email programs use OSX Address Book?

    I'm contemplating moving to another email application. Am rapidly heading towards critical mass on things driving me nuts about mail. Do any other email programs let you use OSX's address book? OR Do any other email programs let you sync their addres