From c2584c806a5e62f229649553f27f107dfae5c2d4 Mon Sep 17 00:00:00 2001 From: Hyunkuk Date: Mon, 2 Oct 2023 16:32:30 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20navigation=20string=20route=EC=9D=98?= =?UTF-8?q?=20url=EB=A5=BC=20=EC=9D=B8=EC=BD=94=EB=94=A9=ED=95=98=EB=8A=94?= =?UTF-8?q?=20=ED=95=A8=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mashup/twotoo/presenter/util/IncodingImageUrl.kt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 presenter/src/main/java/com/mashup/twotoo/presenter/util/IncodingImageUrl.kt diff --git a/presenter/src/main/java/com/mashup/twotoo/presenter/util/IncodingImageUrl.kt b/presenter/src/main/java/com/mashup/twotoo/presenter/util/IncodingImageUrl.kt new file mode 100644 index 00000000..107199a3 --- /dev/null +++ b/presenter/src/main/java/com/mashup/twotoo/presenter/util/IncodingImageUrl.kt @@ -0,0 +1,8 @@ +package com.mashup.twotoo.presenter.util + +import java.net.URLEncoder +import java.nio.charset.StandardCharsets + +fun String.toIncodeUrl(): String { + return URLEncoder.encode(this, StandardCharsets.UTF_8.toString()) +}