... Before you paste the text into the document try running the following applescript: do shell script pbpaste | perl -peMessage 1 of 4 , May 4, 2007View SourceAt 1:01 PM +0000 5/4/07, letspetpuppies wrote:
>If I use a very basic file encoding (like ASCII) then I am warnedBefore you paste the text into the document try running the following
>about the special characters and if I insert as-is they are stripped
>out. That's not ideal. If I use something like Mac OS Roman, they
>are pasted into the document, but I have to try to find them and
>search-and-replace each one. Inevitably, I miss one or two (the
>dashes are particularly hard), and it adds a round of iteration with
>the client (the chars get translated to "?" marks or small squares).
do shell script "
perl -pe 's/([^[:ascii:]])/sprintf(\"%03d;\", ord($1))/eg' |
That should convert all non ascii characters to their character
... I d recommend using UnicodeChecker to convert characters to their HTML entities (and vice versa). Install it and there will be an entry inMessage 1 of 4 , May 4, 2007View SourceOn 04.05.2007, at 15:01, letspetpuppies wrote:
> Ideally, I'd like if there was a SubEthaEdit feature that was awareI'd recommend using UnicodeChecker to convert characters to their
> that there the document special characters that won't translate to the
> web, and converts them to their ASCII counterparts en-masse, without
> me having to specify them one at a time. Is there such a feature in
> SubEthaEdit or could it be added with a script or plugin or something?
HTML entities (and vice versa).
Install it and there will be an entry in "SubEthaEdit/Services"
called Unicode that contains the necessary tools that can be used on
the currently selected text.
All the best,