# Chapter 9, equal = false

**URL:** <https://forums.kodeco.com/t/chapter-9-equal-false/40163>\
**Category:** Swift Apprentice\
**Created:** [March 9, 2018, 1:35pm UTC](https://forums.kodeco.com/t/chapter-9-equal-false/40163 "2018-03-09T13:35:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![artjia](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/artjia/32/74079_2.png) [@artjia](https://forums.kodeco.com/u/artjia)\
**Post date:** [March 9, 2018, 1:35pm UTC](https://forums.kodeco.com/t/chapter-9-equal-false/40163/1 "2018-03-09T13:35:56Z")

</div>

Within the book it said equal is true, because the two string are logically the same  
why when I test on xcode playground the value of equal is false

let cafeNormal = “cafè”  
let cafeCombining = “cafe\u{0301}”  
let equal = cafeNormal == cafeCombining

---

<div class="post-metadata">

**Author:** ![7stud](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/7stud/32/81494_2.png) [@7stud](https://forums.kodeco.com/u/7stud)\
**Post date:** [March 9, 2018, 4:25pm UTC](https://forums.kodeco.com/t/chapter-9-equal-false/40163/2 "2018-03-09T16:25:52Z")

</div>

You have the wrong accented `e` in cafeNormal. Inside cafeCombining you specified the unicode codepoint `\u0301`, which is called a **_combining acute accent_** , and the accent points up and to the right: `́`. On the other hand, the accent on your `e` in cafeNormal points up and to the left, which is called a **_grave accent_**. You need to put an `e` in cafeNormal whose unicode code point is U+00E9, and which looks like this: `é`.

```
è -- cafeNormal (LATIN SMALL LETTER E WTIH GRAVE)
é -- \u{0301} combined with e (LATIN SMALL LETTER E WITH ACUTE)

```

---

<div class="post-metadata">

**Author:** ![artjia](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/artjia/32/74079_2.png) [@artjia](https://forums.kodeco.com/u/artjia)\
**Post date:** [March 9, 2018, 4:44pm UTC](https://forums.kodeco.com/t/chapter-9-equal-false/40163/3 "2018-03-09T16:44:38Z")

</div>

> [@7stud](#):
>
> You have the wrong accented e in cafeNormal. Inside cafeCombining you specified the unicode codepoint \u0301, which is called a combining acute accent, and the accent points up and to the right: ́. On the other hand, the accent on your e in cafeNormal rises up and to the left, which is called a grave accent. You need to put an e in cafeNormal whose unicode code point is U+00E9, and which looks like this: é.

Ok I feel dumb, lesson learned…  
Thanks 7stud

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [August 23, 2018, 5:42am UTC](https://forums.kodeco.com/t/chapter-9-equal-false/40163/4 "2018-08-23T05:42:23Z")

</div>

Closed on August 23, 2018, 5:42am UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
