Save/open document with different font with RTFEditor!

Hello everyone !
I am creating a RTF Editor with JTextPane, DefaultStyledDocument and RTFEditor,It is right if input English character with different Font such as Arial,Basemic etc .but with Non-English ,It is question!!when I input chinese in font "����GB_2312",and save it ,then I open it again ,font is changed to "��"��but font size,color ,and style is correct!I doubt it is RTFEditor does't support chinese font ,is it?how can I do?
thanks a lot!

That's because nobody has posted an answer. You can find the discussion at how do I save a document with different page orientations to one pdf? I think this is pretty much what happens on Mac, but you can combine the separate PDFs to one.

Similar Messages

  • Unable to send mail with different fonts and colors

    Hi All,
    here is the explanation for my problem:
    I am sending mail using javamail. when i send the text with different font and color its not received in the same way. it is simply sending as plain text.
    Please help me on this issue.
    Thanks
    NG

    Hello,
    I am trying to develop an email application. It consists on sending email from [email protected] to [email protected]
    How can I do this in java ?
    I am using this software but it works only with gmail !!
             * Send Email to the webmaster
             String  d_email = "[email protected]",
                     d_host = "smtp.gmail.com",
                     d_port  = "465",
                     m_to = "[email protected]",
                     m_subject = "Email from user";
             Properties props = new Properties();
             props.put("mail.smtp.user", d_email);
             props.put("mail.smtp.host", d_host);
             props.put("mail.smtp.port", d_port);
             props.put("mail.smtp.starttls.enable","true");
             props.put("mail.smtp.auth", "true");
             props.put("mail.smtp.debug", "true");
             props.put("mail.smtp.socketFactory.port", d_port);
             props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
             props.put("mail.smtp.socketFactory.fallback", "false");
             SecurityManager security = System.getSecurityManager();
             try
                Authenticator auth = new SMTPAuthenticator();
                Session session = Session.getInstance(props, auth);
                //session.setDebug(true);
                MimeMessage msg = new MimeMessage(session);
                msg.setText("This is a message from: "+UserEmail+"\n "+UserMessage);
                msg.setSubject(m_subject);
                msg.setFrom(new InternetAddress(d_email));
                msg.setSentDate(new Date());
                msg.addRecipient(Message.RecipientType.TO, new InternetAddress(m_to));
                Transport.send(msg);
             catch (Exception ex)
                ex.printStackTrace();
                out.println("Messaging ERROR: " + ex);
                out.println(stack2string(ex));
                    if(ex.getMessage().compareTo("")!=0)
                        check = "Message NOT SENT " + ex.getMessage();
        private class SMTPAuthenticator extends javax.mail.Authenticator
            public PasswordAuthentication getPasswordAuthentication()
                return
    new PasswordAuthentication("[email protected]", "pwd");
        }please advice

  • Office365 macbook air while copy paste and change font to tahoma forarded message remain with different fonts and size not accepting change

    office365 macbook air while copy paste and change font to tahoma forarded message remain with different fonts and size not accepting change
    mac yosemite
    office365

    Also here's the log before it happened. As you can see there is no activity from 9:48 to 10:00 am when the sound occurred.
    23/02/2014 9:48:12.792 am ntpd[52]: FREQ state ignoring -0.145411 s
    23/02/2014 9:48:15.258 am WindowServer[96]: _CGXHWCaptureWindowList: No capable active display found.
    23/02/2014 9:48:20.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000280
    23/02/2014 9:48:20.000 am kernel[0]: ARPT: 61.319378: AirPort_Brcm43xx::powerChange: System Sleep
    23/02/2014 9:48:20.000 am kernel[0]: ARPT: 61.319390: wl0: powerChange: *** BONJOUR/MDNS OFFLOADS ARE NOT RUNNING.
    23/02/2014 9:48:20.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
    23/02/2014 10:00:04.000 am bootlog[0]: BOOT_TIME 1393167604 0
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.appstore" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.authd" sharing output destination "/var/log/system.log" with ASL Module "com.apple.asl".
    Output parameters from ASL Module "com.apple.asl" override any specified in ASL Module "com.apple.authd".

  • Stop sending messages with different fonts!

    Hello,
    I need some help. I started using Apple Mail recently and I like it alright. My main issue is that when I cut and paste from my browser or from anywhere else really, the program is preserving the font though I can't see that it is. When I get a response from somebody that I sent a message to, I see 2 or 3 different fonts and/or sizes. They only way I have figured out how to deal with this is an ugly fix. I have to open the font panel with every email and manually choose the right font and font size. Annoying! Any fix available? It look really unprofessional!
    Thanks,
    Jared

    When you paste the text, instead of the old cmd+v, go to Edit menu and use Paste and Match Style, this should ignore the original font/color and use the current one in your mail. Or if you want to just send plain text email, you can go to Format > make plain text, this will strip all formatting even if you pasted in.

  • Problem opened document convert PDFExport(IBR) with peoplesoft

    Hi
    ive problem. when i want to opened document after checkin document with peoplesoft(9.1 tools 8.5.2) to WCC 11.1.1.7 used PDFExport(IBR 11.1.17),i got this error.
    but if no convert to IBR 11.1.1.7(Passthru) can open and no problem
    user only have role guest and seurity public(R) on WCC 11.1.1.7
    anyone can help me please
    Thank's
    Putra
    Event generated by user 'stevie' at host '172.0.2.71:16200'. Referred to by http://172.0.2.71:16200/cs/groups/afdocuments/documents/psftattachment/a24t/mdaz/~edisp/mkn-003382.pdf.
    User agent is Mozilla/5.0 (Windows NT 6.2; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0 and request method is GET.
    Unable to retrieve file. User 'stevie' does not have sufficient privileges. [ Details ]
    An error has occurred. The stack trace below shows more information. !csUserEventMessage,stevie,172.0.2.71:16200!csFileServiceReferredToBy,http://172.0.2.71:16200/cs/groups/afdocuments/documents/psftattachment/a24t/mdaz/~edisp/mkn-003382.pdf!csFileServiceUserAgent,Mozilla/5.0 (Windows NT 6.2; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0,GET!csUnableToRetrieveFile!csUserInsufficientAccess,stevie intradoc.common.ServiceException: !csUnableToRetrieveFile!csUserInsufficientAccess,stevie *ScriptStack GET_DYNAMIC_URL 3:createWebFileNameFromRelativeUrl,fileUrl=/cs/groups/afdocuments/documents/psftattachment/a24t/mdaz/~edisp/mkn-003382.pdf at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115) at intradoc.server.Service.buildServiceException(Service.java:2337) at intradoc.server.Service.createServiceExceptionEx(Service.java:2331) at intradoc.server.ServiceSecurityImplementor.validateSecurityPrivilegeLevel(ServiceSecurityImplementor.java:819) at intradoc.server.DocumentAccessSecurity.checkSecurity(DocumentAccessSecurity.java:192) at intradoc.server.DocumentAccessSecurity.checkSecurity(DocumentAccessSecurity.java:138) at intradoc.server.ServiceSecurityImplementor.checkSecurity(ServiceSecurityImplementor.java:373) at intradoc.server.Service.checkSecurity(Service.java:2915) at intradoc.server.FileService.checkSecurity(FileService.java:339) at intradoc.server.Service.checkSecurity(Service.java:2893) at intradoc.server.FileService.createWebFileNameFromRelativeUrl(FileService.java:944) at sun.reflect.GeneratedMethodAccessor1136.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86) at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310) at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295) at intradoc.server.Service.doCodeEx(Service.java:620) at intradoc.server.Service.doCode(Service.java:575) at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643) at intradoc.server.Service.doAction(Service.java:547) at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458) at intradoc.server.Service.doActions(Service.java:542) at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1391) at intradoc.server.Service.executeActions(Service.java:528) at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:737) at intradoc.server.Service.doRequest(Service.java:1956) at intradoc.server.ServiceManager.processCommand(ServiceManager.java:437) at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265) at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1354) at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1731) at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:223) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:87) at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305) at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278) at idcservlet.ServletUtils.executeContentServerIntegrateMethodOnConfig(ServletUtils.java:1696) at idcservlet.IdcFilter.doFilter(IdcFilter.java:457) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    i want to open and search docoment only for peoplesoft and user should not be search and opened on webcenter content(only for repository)
    anyone can help me please
    regards
    Putra

  • Problem saving files with different name with DFS installed

    I have a server that I have DFS installed and running on. This appears to work fine. There is one problem that I have encountered though:
    On a share I have a folder that is not inheriting rights from it parent object. This works fine with DFS. When I create a new word document and try to save it in this folder with a different name other than the default (doc1.doc) I get an error saying that the user doesn't have permission, but I can save it as the default name of doc1.doc. I can then re-name the file to what I want from windows explorer, open it up in word, work on it and save it again. Even with the new file name I can't do a save-as and save it as a different file.
    All the other folders under the share that inherit rights from the parent folder work.
    eg save-as in \\server\share\folder or below works
    save-as it in \\server\share\no_inheritance or below does not work
    Anyone have any ideas?

    Originally Posted by ndean
    I have a server that I have DFS installed and running on. This appears to work fine. There is one problem that I have encountered though:
    On a share I have a folder that is not inheriting rights from it parent object. This works fine with DFS. When I create a new word document and try to save it in this folder with a different name other than the default (doc1.doc) I get an error saying that the user doesn't have permission, but I can save it as the default name of doc1.doc. I can then re-name the file to what I want from windows explorer, open it up in word, work on it and save it again. Even with the new file name I can't do a save-as and save it as a different file.
    All the other folders under the share that inherit rights from the parent folder work.
    eg save-as in \\server\share\folder or below works
    save-as it in \\server\share\no_inheritance or below does not work
    Anyone have any ideas?
    I have the same problem... how did you solve it?
    Thanks!
    Andres, Blogger

  • MS Word not able to save open documents/quitting unexpectedly

    I've had the following problem more than a few times since I've had my iBook (just over a year): Sometimes when I have a Word document open that I'm working on I'll get one of two messages when I try to save the document. One says something to the effect that Word is unable to save the document because the "disk is full," or a message appears that says that Word can't save the document because too many "applications" or "documents" are open (I can't remember which one is specified). Then another box pops up that says something about "autorecovery" being postponed or unable to work. Finally - the icing on the cake - Word shuts down and a message about Word "quitting unexpectedly" comes up.
    When this sequence occurs, anything that I've written since the last time I saved the document is gone. Lovely. Who cares that I just wrote the clearest articulation of my thoughts for the day, right? (I'm currently working on my dissertation, so this is VERY FRUSTRATING, to say the least.)
    I have tons of space left on the hard drive, so I know that no "disk is full." Also, I find it hard to believe that having, say, two Word documents open along with DSS (an audio program for transcribing) is too much for the computer to handle at once. (I mean, if it were a PC, sure, I might be able to believe that this sort of thing could overload it and cause a hitch, but pleeease, with a Mac? Isn't that the whole reason I was sold on these fancy new-fangled machines?) Plus, this problem has also occurred when I have only one document open.
    Just to add a little more info. to the puzzle, I already reinstalled MS Office again, thinking that perhaps it just wasn't properly installed the first time. No change. I've also asked a tech through Apple Care about it, and he guided me through checking my hard drive for any damage, etc. We found nothing out of the ordinary. Finally, a friend who has the exact same copy of MS Office on his desktop Mac has never had any problem with Word.
    Any advice would be much appreciated.
    iBook G4   Mac OS X (10.4.5)  

    as first step try creating new user in Accounts system preference, log in as new user and try running Office.
    if it works that way, issue is with some preferences or cache files in the original user account.
    if it does not work under new user, issue is system-wide with Office specific files or the OS.

  • How to save open files in different projects/workspaces?

    Is it possible at all to have Dreamweaver save different sets of open files in different projects/workspaces like every other IDE out there?
    I can't imagine every web developer is working on ONE project at a time and doesn't feel the need to switch to another one and have his last open files restored from that specific project..
    Am I missing something?

    Very wrong
    I am talking about saving different sessions of open files automatically (and assign them to user-defined projects that may or may not contain several sites or just one site).

  • Runas with different user with password also in Batch File

    Hi,
    I need to run one application with different user credentials.
    I am using Runas command in batch.
    When running the task it's prompting for password.
    Here i want to run the application without any promptings.
    Can any body help me is there any batch script for running the program silently without any prompts.
    Thank You,
    Avis 

    Runas is typically not for windows forms but for console operations. 
    Try the forum of your program language.
    However, be aware that probably there will no answer for this given because Runas is mostly meant for malicious programs so code for that is not allowed to distribute using forums.
    Success
    Cor

  • Can't open documents created in Pages with macBook pro running maverick

    Hello,
    I just bought the new MacBook Pro and downloaded iWork.  Now when I create a document in Pages and save it to Documents, I can't open it.  I get an error messages saying a file is missing.  Also, all my old documents created with Pages that I transfered from my old MacBook won't open.  It says file too old, need to save to Pages 09. 
    Tried opening the old documents in Pages 08 and saving them, but still can't open them.
    Any suggestions?

    Further to my earlier post about this problem, our IT man came in to the office, by coincidence, so I grabbed him and it seems that he has cracked it.
    You need to proceed as follows :
    Select the document by single click on the icon (i.e. select it but don't double click which will try to open it.)
    Go to File Menu and chose "Get Info"
    Half way down the drop down menu, chose "Open with" then select Pages 4.0 (i.e. the iWorks 9 version)
    This process will open that particular iWorks 8 document.
    But, if you also tick the "Change All" box it means that opening with the new version of Pages will become the default and will apply to all iWork 8 documents so you should not need to bother with this ever again.
    So far, that seems to work.
    (One might have thought it would have been a good idea for Apple to have built this in as a default ?)

  • Office 2013 cannot open documents from SharePoint 2007 with IE 11.

    Hei 
    One of my client cannot open word documents (office 2013) from SharePoint 2007 with IE11.
    Are there any compatibility issues among Office 2013/SharePoint 2007/Internet Explorer 11?
    Thanks in advance.  

    Hi
    Did you receive any error message when you try to open the documents?
    We recommend you start your Internet Explorer in compatibality mode, and follow the advice in the article below:
    http://blogs.technet.com/b/asiasupp/archive/2011/06/13/error-message-quot-your-client-does-not-support-opening-this-list-with-windows-explorer-quot-when-you-try-to-quot-open-with-explorer-quot-on-a-sharepoint-document-library-in-office-365-site.aspx
    In addition here's a thread for your reference:
    http://social.technet.microsoft.com/Forums/en-US/3cbe6b22-e307-485b-a1af-1699cdf5ba86/office-2013-applications-are-not-able-to-open-sharepoint-2007
    Thanks,
    Tylor Wang
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here
     

  • Can't open documents on the Desktop with apple applications

    Came across this while using automator and now realize that it is a problem with Numbers, Pages and probably all Apple Apps.
    With Automator I get the eternal spinning wheel whenever I try to open a workflow which is located on the Desktop.   Works OK with other locations.    Also, whenever I use the "Get Specified File" command in automator and try to add the file location I get the spinning wheel.  The desktop is the default location when I do this and can not change it.   Other Automator commands work ok.
    I have come to realize that this is also true with Pages and Numbers.  That is any document that is on the desktop will not open from the Pages/Numbers application.  The selection page freezes and have to force quit.    However, the document will open directly from the Desktop (i.e. selecting it on desktop and double clicking.).     Also, documents open ok from any other location.    
    Have run disk permission and deleted cache files associated with Automator with no change.     Everything else works perfectly on the Mac, running Mavericks 10.9.1.    
    I'd appreciate any ideas.   Thanks

    Problem cleared after deleting below Libarary files:    
    com.apple.automator.LSSHAREDFILELIST 9.15.09 PM.plist
    com.apple.finder 9.15.29 PM.list
    com.apple.finder.plist 
    Was shot gunning and got lucky

  • Modified Keyboard Layout (Unicode) not useable with different fonts

    Hi,
    I have created a customized unicode keyboard layout with german basic layout and polish characters supplied with the "Alt" key. I activated the layout and was able to type in most of the OSx applications BUT only with fonts Times New Roman and Arial. When I switched to a differnet font and typed normal chars they were displayed in the font style selected. When I typed the Polish characters defined via ALT + A for example, these chars were displayed in TimesNew Roman, not in the selected font e.g. comic mt...
    this was the case in ms office apps as well as in Apple Mail or other apps.
    Please help me out. I need a functional basic German keyboard layout with aditional keys defined under ALT+ somewthat. How can I get this stuff working, maybe without using Unicode? Do I have to modify the generic .RSC files with ResEdit, and does somebody have an Idea how to do this.
    Basically I need German keyboard with the mentioned addition of some polish keystrokes.
    Many thanks in advance
    thomas

    There is nothing wrong with your keyboard. Your problem is probably caused by the fact that not every font has the characters needed for Polish. Just open up Character Palette, go to 0142, and look in the Font Variation panel. That will show you the fonts that do have the slashed l, for example. They should all work fine, except in Appleworks and Word X, which cannot do Unicode.

  • How to find a word with different font format (e.g. italic and regular in one word)

    Hi people,
    I need to find a word, prefferably using GREP or simple Find/Replace tool.
    Sometimes, when I get source text to paste into InDesign, some word's format is messed up. First letter is italic and rest is regular or otherwise (or any other font format). How can I find such words automatically. For example:
    Example
    would really appreciate any help.
    best regards
    JMG.

    Hi,
    If I had to do that, using Multi-Find/Change, I would play it like:
    With MFC, I create a set of the 2 regex. So, one click to fix your problem.

  • A workaround to get open documents in different Spaces to the allocated PS space

    A small workaround for Spaces CS5 Mac.
    If you have CS5 documents spread over different Spaces due to clicking them in the finder and want to get them all back in to the allocated PS Space, here's a workaround.
    You do need one doc open in the correct space I'm afraid for it to work. Create a new doc in there if you have to. I tend to leave one small doc open in the right Space all the time now.
    Go to the allocated PS space. Select the menu option "Consolidate all to tabs" from the  Window>Arrange menu.
    This will bring all the open docs from their spaces to the correct space as tabs.
    That might be enough for you but you can't drag adjustments layers and layers with alphas etc to another doc in Tab view, something I do all the time when I'm retouching 20-30 shots and I'm trying to match them.
    Hard to do that with tab view obviously.
    Next select "Float all in windows" and you'll have your docs viewable, side by side in the right space.
    If you assign a key command to those options, it becomes a quick tap 1-2 and you're done.
    As far as I can tell, if you want floating windows, and all your docs in the right place, and don't want to open your images from the PS open dialogue (who does when you have 6 windows of 50 images on your dual 30" monitor setup?) then this will do it.
    It's not great for all things but it's better than "It's all Apple's fault"

    there is certainly no built in way to do it. In fact Dock Spaces is the only program I've ever heard of that allows you to have different docks in different spaces. if it can't do it, it's impossible.

Maybe you are looking for