From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,NO_DNS_FOR_FROM, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from [192.168.88.254] (unknown [125.160.110.145]) by gnuweeb.org (Postfix) with ESMTPSA id E3EC17E24B; Tue, 19 Jul 2022 08:20:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1658218847; bh=5KcktEX3CPfWTGO3SSNF3N5zTVWD43aLTlxBcb4ZiWo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Cjmt1WleBjNKe4K9TDLJocRRAcDuTjkgvWMotj5eeDDts6WqyC7NVqTGYvDmIsHPQ GXYaLTocpNmGLl277Ig6HU4SBtjsgqPpOGbnqxwNIn5Zno8J1ec86Ty4C8vthUdfkD GPzdb4V3dIWxWEgMfC/CGdOEGRv3X9caKxLXK+1bOddfrjqt/R0fFpUeco4oJZiEQP yvThGhwaENZoG0RdwthMAi1GsmFmOFEqSMLVFq/xPalvOhVpTrUf3ZZujUdChmSIT6 vRO71yRUvijnLT5ESQj0Xsc8C0v1t7R0TfTHmepCPngXC3n2mQrfuL5ens6xfCCXyp 7YS9e3ZFJyFgw== Message-ID: <75d26353-c3e7-7301-3f09-ee32baec241a@gnuweeb.org> Date: Tue, 19 Jul 2022 15:20:42 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 10/18] Create fix_utf8_chars function Content-Language: en-US To: Muhammad Rizki Cc: Muhammad Rizki , GNU/Weeb Mailing List References: <20220719001744.1950-1-kiizuha@gnuweeb.org> <20220719001744.1950-11-kiizuha@gnuweeb.org> From: Ammar Faizi In-Reply-To: <20220719001744.1950-11-kiizuha@gnuweeb.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: On 7/19/22 7:17 AM, Muhammad Rizki wrote: > caption = ( > "#patch #ml\n" + > - cap.rstrip() > - .replace("<", "<") > - .replace(">",">") > - .replace("�"," ") > + fix_utf8_char(cap) > ) Remove the parentheses, just do this: caption = fix_utf8_char(cap) -- Ammar Faizi