Created
June 16, 2011 18:23
-
-
Save rafaelbernard/1029869 to your computer and use it in GitHub Desktop.
substitui_win1252_html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- DROP FUNCTION substitui_win1252_html(texto); | |
CREATE OR REPLACE FUNCTION substitui_win1252_html(texto text) | |
RETURNS text AS | |
$$ | |
BEGIN | |
texto := replace(replace(replace(replace(replace(texto, '', '’'), '', '“'), '', '”'), '','•'), '', '–')::text; | |
RETURN texto; | |
END; | |
$$ | |
LANGUAGE plpgsql; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment