Global Search and Replace for Scrambled/Garbled Characters

So I exported a bunch (over 3000) contacts from my Outlook on Windows by using Outlook2Mac, and also tried just using a straight CSV export. But the Chinese characters came out all garbled, and I no longer have the use of that Windows machine anymore.
Here's an example:
Name: ∂¿¨¸™K (May Huang)
Job Title: ±M§·∏g≤z
Dept: ¿Á∑~≥B/ODM∑~∞»≥°
Company: ®Ù•fl∞ͪ⁄
Address:
§≠™—∂m§≠≈v§≠∏Ù15∏π
•x•_ø§
•x∆W
I figure I can slowly piece together most of it by doing lots of global search and replaces -- for instance, "•x∆W" should be "台灣" (Taiwan) -- and changing each characters I know one by one.
Problem is, I can't figure out how to do a find and replace! Can anyone help me out?
Thanks in advance!
PowerBook G4 17   Mac OS X (10.4.5)  

But for the sake of getting a solution to the
original problem, I wasn't able to export the vCards
from AddressBook and then do what you said. For some
reason, I couldn't open the .vcf file in TextEdit;
kept telling me that the file wasn't encoded in
"Traditional Chinese (Windows, DOS)" format.
You need to use the Open dialogue in TextEdit and open the .vcf in something that it will accept. When you export the stuff from Address book, it indeed is not in Trad Chinese.
I don't have your stuff, so I can't be exactly sure, but it should work something like this. You export everything from Address Book. Use the Open dialogue of TextEdit to open the file, probably as UTF-8. Save as MacRoman. Open again as Trad Chinese (Windows). Save as UTF-8. Reimport. You may need to experiment to find what works right.

Similar Messages

  • Search and replace for Unicode characters

    Hello,
    I have a function which searches and replaces characters on file. It works with ASCI sharacters, but not when the strings which needs to be replaced contains Unicode ('á', 'ā') etc.  The source file is codding
    utf8 .
    $file = "file.txt" 
    $SearchReplace = @($file)
    #Process files by performing a search and replace
    foreach ($file in $SearchReplace) 
    #Select-Object -Skip 1 |
        (Get-Content $file) | 
            Foreach-object { $_ -replace 'unicode_string' , ';'   } | 
         out-file -encoding Unicode $file
    How to get working the search (and replace) function with Unicode characters?
    Thanks!

    No. it does not. I have verified that script does not recognize the diacritic
    ('á',
    'ā') characters when at all the operations with the files I have specified encoding utf-8/Unicode.

  • In Pages, how to search and replace text involving invisible characters?

    In Pages documents, how to search and replace text involving invisible characters, colors and font sizes—a task which is so easy in Mircosoft Word?

    I read that an older version of Pages allowed users to enter special characters in the search/replace fields, but this did not work for me.
    Here: http://www.macworld.com/article/1156533/pagesspecialcharacters.html
    I still am looking for a way to do this.

  • How do I search and replace for invisibles in Pages 5.5.2?

    Three related problems all involving search and replace for invisibles.
    1. A block of text where all double returns need to become single returns.
    2. A block of text where all returns need to be replaced with a single word space.
    3. A block of text where all double word spaces to be replaced with a single word space.
    Pages 09 could do all three this handily. How can these be done in Pages 5.5.2?
    Appreciated.

    Here are screenshot of my attempts to make reducing double returns to one. First up selection of a double return:
    Copy to the clipboard. Do a Command-F. Here's the resulting dialogue:
    I paste in the contents of the clipboard:
    Note the Search field no longer has an empty slot selected. Something is clearly in there, but no instance of whatever is has been found. Nevertheless, I proceed to set up the Replace field by selecting a single return:
    Copy that to the clipboard and paste into the Replace field:
    Nothing to search for and therefore nothing to replace. Am now wondering what that little scoop to the right of the eyeglass icon might indicate. Clicking on it reveals this:
    Definitely not "a solution that just works."

  • Xml search and replace for 'Session Variables' in column title view

    Hi Experts,
    I have around 10 reports where measure column titles are displayed based the session variable.
    Below is the syntax I have used in the column title
    @{biServer.variables['NQ_SESSION.VariableName']}
    Now I would like to replace the above syntax with some static text. To do this, I am trying to use the xml search and replace feature in the catalog manager.
    For some reason, catalog manager is unable to find the syntax in the xml file. I have tried using escape character also for the apostrophe by using &apos, but no luck.
    Any pointers on how to replace the text?
    Thanks

    Using Analysis get the xml conversion for @{biServer.variables['NQ_SESSION.VariableName']} from Advanced tab's xml code
    use this code to find in catalog manager, if you able to find then go for search and replace option.
    I think this should work for you.

  • Global search and replace on large-scale multi-user sites

    Is there a way for Dreamweaver to select only the files that
    are found when using the find and replace facility? This would make
    updating large websites a lot easier.
    From time to time I need to perform small changes to text or
    code (that obviously is not contained in an include file or library
    item) sitewide. As the site is administered by multiple users, it
    uses the check-in/check-out system, which means that before editing
    a file, it needs to be checked out. Thus, we can't just use search
    and replace directly, we have to check out the relevant files
    before performing the replace routine. The problem is selecting
    only those files which will be affected by the search and replace
    (and perform the operation in minutes) rather than selecting
    everything (and spending hours).
    Since it seems one is unable to select only files that appear
    in the search results, I have to manually identify the folder that
    holds the files with the results, and then check it out. As the
    files which need to be edited might be scattered around the whole
    site, this often means that I have to check out whole folders close
    to the site root. The check-out command will include everything in
    a folder, and the site contains thousands of files (which has to be
    checked back in afterwards), so obviously this is a heavy and
    time-consuming operation.
    Does anyone know if DW has a way of selecting only the
    relevant documents, or have suggestions for other ways of doing
    this? I get the feeling that this is most easily achievable by
    using tools outside DW, but I hesitate to go outside DW since it
    would interfere with DW's site managment system.

    I don't think you will find anyone here with such experience,
    not the least
    reason being that Library items run out of useful steam at
    about 100 pages.
    To use them on larger sites is just too tedious and risky,
    honestly. Is
    there any possibility to change to server-side includes?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "lochnessmoose" <[email protected]> wrote in
    message
    news:gb5ua7$a2t$[email protected]..
    > Is there really noone here with experience with this
    problem?
    >
    > The same problem applies to editing library items. I
    need to update a
    > library
    > item that will affect 200+ files (on a website that has
    thousands). Being
    > able
    > to select only those 200 for check out before editing
    would be a lot
    > easier
    > than having to check out the entire 500 MB site....
    >

  • Global search and replace

    I have a rather large .xpj and now have to find all instances
    of the word "window" and replace with the word "page." Is there any
    quick way to do this or do I have to do it topic by topic?

    One more thing. On the Multi-Find and Replace window, you can
    indicate that you want the HTML tags ignored. What about Java
    script? Is there any way to ignore that in a file?
    Thanks,

  • Search and replacing a url...

    I just ran across an issue last night, my hyperlinks added a space at the end of the url. Does anyone know how to do a search and replace for the hyperlink window? I ended up editing every one of them. It probably wouldn't be so bad but that is a lot of repetition that InDesign should be doing.
    Edit: I should mention that I am using CS3 on Windows XP. I am thinking I hit a bug with the above, the spaces should not have been there.

    The document was imported from word 97. Last night I deleted the text and reimported it as I updated a few of the links. (Yeah I know about linking the document) I also added a few directly in InDesign. All hyperlinks except 2 had a space after them, those 2 were imported. Which makes me believe the problem was not with the importing(placing) but perhaps a bug in InDesign. This document use to export to pdf just fine. One thing I had noticed was the paragraph mark on all but those two were marked as a hyperlink. Even though I did a search and replace on all the paragraph marks to remove the hyperlink, the space remained in the url. So I ended up double clicking on each hyperlink in the hyperlink window and manually removing the space at the end of each url.

  • Perform search and replace in a custom command?

    Hello,
    Does anyone know how to perform a search and replace for selected text in a custom command?
    My specific dilemma is this: I have a large document containing [very poorly formatted] songs. For example:
    <p>Verse1 Verse1 Verse1 Verse1 Verse1</p>
    <p>Verse1 Verse1 Verse1 Verse1 Verse1</p>
    <p>Verse1 Verse1 Verse1 Verse1 Verse1</p>
    <p>Chorus Chorus Chorus Chorus</p>
    <p>Chorus Chorus Chorus Chorus</p>
    <p>Chorus Chorus Chorus Chorus</p>
    <p>Verse2 Verse2 Verse2 Verse2 Verse2</p>
    <p>Verse2 Verse2 Verse2 Verse2 Verse2</p>
    <p>Verse2 Verse2 Verse2 Verse2 Verse2</p>
    <p>Verse3 Verse3 Verse3 Verse3 Verse3</p>
    <p>Verse3 Verse3 Verse3 Verse3 Verse3</p>
    <p>Verse3 Verse3 Verse3 Verse3 Verse3</p>
    I would like to be able to select all the text in a verse and run my custom command on it that would remove the "<p>" and replace "</p>" with "<br />".
    Thanks,
    Kelso

    replaceAll method in String is available only from 1.4 onwards.
    http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html#replaceAll(java.lang.String, java.lang.String).
    You could use a method to search and replace a String with another...
    public String replace (String source, String search, String replace) {
        StringBuffer result = new StringBuffer();
        int start = 0;
        int index = 0;
        while ((index = source.indexOf(search, start)) >= 0) {
          result.append(source.substring(start, index));
          result.append(replace);
          start = index + search.length();
        result.append(source.substring(start));
        return result.toString();
    }

  • Joker characters in the search and replace function

    Hello everyone,
    Just a quick question :
    I was wondering what character can be used as a joker character in the search and replace function (I did a research in the site, but didn't find any thread)
    To be clear, I have misspelled a word, for example «trouser».
    I know I didn't make any mistake with the first and last letter, but sometimes I wrote it «tourser», «turoser»
    (sorry if there is a weird meaning, i'm french, and for me it won't mean anything, so don't take it personally)
    I would like to be able te replace all the versions of «trouser», even the good ones, using «t*****r» in the search and replace function.
    I tried the «*» character, but it's not the jocker.
    Thank you for your help !

    As I can't edit my first message, just wanted to let you know it's also called «wildcard» characters
    Like here (Careful, it's… Ms Office)

  • GUI Based tool for search and replace using regular expression

    Hi,
    I have developed this small tool which can be used for search and replace in multiple files using reqular expressions.
    Features:
    1. Full regular expression
    2. GUI based with Highlighted results
    3. Preview for replace available
    4. Pure Java based.
    5. Its like unix sed and grep
    Please visit below site for download/more information :
    http://sourceforge.net/projects/regexsearchrepl/
    Thanks,
    Hitesh Viseria

    I agree with you, it cannot compete grep/sed/awk combination. I couldnt find anything even close to grep/sed for windows which will also have a preview and most important, free. That is what made me write this tool. I am trying to
    improve its performance and more features like history etc.
    Any suggestions on additional features are most welcome.

  • Search and Replace using wild characters

    I have a bit of a problem on my hands while dealing jdom and xml. I am parseing an xml response from a service. The issue is that it contains an element with a colon. Nothing I can do about the service so I have to deal with it. I know I could use DOM and s on but I have chose to use jdom for a couple of reasons. What I am planning on doing is removing the colon in the element names with some sort of search and replace. The problem is that the there could be up to 500 element names with a numeric value. The element name looks like the following ns1:Point, ns2:Point, ns3:Point, and so on. JDom will not handle this so I would like it the element name to look ns1Point, ns2Point, etc. I have the xml returned from the service in a string. Is there any way I can do a search and replace given the above information. Thanks in advance

    Silverfoot wrote:
    I realize that it seperates the name space. The namespace for the element is different than ns1. Maybe I am missing something though
    Using JDOM, I navigate my way through the xml using getChild(elementname, namespace). When i get to ns1:Point, i use the same namespace as previous elements. Are you suggesting that ns1 is another namespace. In that case I would use a second name space to the Point element.I think you're missing a whole lot, actually. You don't seem to know much about namespaces. For a start you're apparently making the beginner error of assuming that the namespace prefix declares the namespace. And this idea:
    What I am planning on doing is removing the colon in the element names with some sort of search and replace.is just wrong. I would suggest you go off and find a tutorial (or a chapter in your XML book) about namespaces.

  • Search and Replace DQXI Transform for Status Codes

    I've been tasked with creating a Search and Replace transform to convert DPV status codes into the textual equivalents.  For example, a status code of "S20000" would convert to "A different city was assigned."
    There are over 200 possible combinations, so I'd like to know if someone else has done this, and would be willing to share their code.

    You could store all your patterns in a Map. Then iterate over the map inserting the patterns into a regex.

  • Global metadat edits, ie search and replace?

    Does LR 1.0 support search and replace in metadata? Just realized I misspelled a product name that appears in each of 250 captions. I can't just sync them all, since different folks appear in different pix and I've spent last two days typing ID's. Any way to auto correct this? I run OS 10.4.9 on Powerbook G4 12in, 1GB. Many thanks, as always.

    No, not really. Pretty certain you can do it via a Bridge script if that's any help.
    John

  • HTML character entities problem in saved regex search and replace query

    I have a many search and replace regular expression queries (.dwr files) that I have saved. I have a problem specifically with saved queries that contain HTML entities such as "& nbsp ; " or "& shy ;" (spaces added otherwise code doesn't render in browser). For example if I use the following search:
    ([\d]{3}& shy ;[\d]{3}& shy ;[\d]{4}|[\d]{3}& nbsp ;[\d]{3}& nbsp ;[\d]{4})
    (which searches for numbers in the 888-555-1234 or 888 555 1234 formats)
    This will work fine if I manually enter it into the search text area. However if I save it to file and reload it, it will no longer work because the &shy; and   characters are now displayed as " " (space) and "-"(shy) rendering the saved query useless as it's no longer searching for the code. I have some fairly long and complex queries and this is becoming a problem.
    Thanks for any help.
    I'm currently using Dreaweaver CS4 at home and CS5.5 at work.

    Thanks for your reply Kenneth, but that is not what I'm trying to accomplish. I'm looking for the HTML entities that exist in the source code which are & shy ; and & nbsp ; (without the spaces). As I mentioned above, if I enter them manually in the search box, I will get the corrrect results. If I save the search and then reload it, the special characters are no longer in HTML and the search is now useless.
    Just for example again
    In an open document in code view insert a number in the format (without the spaces): 888& nbsp;888& nbsp ;8888
    Open a search dialog box and enter (without the spaces): [\d]{3}& nbsp ;[\d]{3}& nbsp ;[\d]{4}
    The search will find that entry.
    Save search as phone.dwr for example. Then load it and try the search again. It won't work because upon loading the search Dreamweaver replaces the HTML code which was saved with the rendered HTML. So now the search shows up as: [\d]{3} [\d]{3} [\d]{4} which will not find the string with hard coded non-breaking spaces that I'm looking for.
    Basically I want to be able to save a search query for reuse. When I load a search query, I want it to be exactly what I saved, not something that DW has rendered (that doesn't work).

Maybe you are looking for

  • ITunes library sharing

    I have an iMac, my wife has a MacBook Pro. What is the best way for her to be able to access my iTunes library? Do I push everything to the Cloud? Or should I be trying to figure out home "sharing" more?. Shde can access everything that was bought on

  • PLEASE HELP ME INSTALL HP ENVY 7640 SERIES WITHOUT DISC

    can't locate disc.

  • Error in Collective release of Service entry sheets

    Getting an error message at the collective release of entry sheets (ML85). <b>Error: Total value of entry sheet differs from Total value of account assignment.</b> However in the same transaction code individual release is possible. Please suggest

  • RH 9 - ? about Importing

    I'd like to link a FM 9 document rather than import it. I'm not sure if I'm going about this correctly, but I've tried to create a blank project and then attempted to import the FM 9 book but the Import menu option is not available when I do this, on

  • What is the specific use of initialization event

    hi experts pls tell me what is the specific use of initialization other than providing default values to selection-screen variables. thanks in advance