I've been working on learning NWE macros, and wrote one yesterday that does a global find/replace to remove new line codes from selected lines globally.

The problem is that the find/replace strings contain Japanese characters. After saving and reopening the macro to work on it some more, the Japanese characters are garbage, the macro is unreadable, and it cannot be saved.

Is it not possible to have Japanese in a grep expression in Perl or a NWE macro? If so, how? I assume I am simply doing something wrong.

#This macro template lets you replace text with other text
#You can use regular expressions to do text pattern matching
while (my $line = <STDIN>) { #Reads each line of the selection from the clipboard

Cliff- I've not tested your macro, but I think this may be a bug in NWX. If you can, please download the Nisus Writer Pro public beta. I believe the problem may be fixed. Thanks, please let me know how it goes.