rojo icon indicating copy to clipboard operation
rojo copied to clipboard

Does not sync emoji text from a .rbxmx

Open RenanMsV opened this issue 1 year ago • 0 comments

Trying to include a .rbxmx file with a TextButton with an Emoji in its text doesn't sync correctly.

What it is: ❌ What roblox save to .rbxmx outputs: <string name="Text">&#226;&#157;&#140;</string> What Rojo outputs: ❌

To try to reproduce save the xml below as a .rbxmx file.

<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
	<Meta name="ExplicitAutoJoints">true</Meta>
	<External>null</External>
	<External>nil</External>
	<Item class="TextButton" referent="RBX94ADA178151648B1B3BC1F51DE701AC6">
		<Properties>
			<bool name="Active">true</bool>
			<Vector2 name="AnchorPoint">
				<X>0.5</X>
				<Y>0</Y>
			</Vector2>
			<BinaryString name="AttributesSerialize"></BinaryString>
			<bool name="AutoButtonColor">true</bool>
			<bool name="AutoLocalize">true</bool>
			<token name="AutomaticSize">0</token>
			<Color3 name="BackgroundColor3">
				<R>1</R>
				<G>1</G>
				<B>1</B>
			</Color3>
			<float name="BackgroundTransparency">0</float>
			<Color3 name="BorderColor3">
				<R>0.105882362</R>
				<G>0.164705887</G>
				<B>0.207843155</B>
			</Color3>
			<token name="BorderMode">0</token>
			<int name="BorderSizePixel">0</int>
			<bool name="ClipsDescendants">false</bool>
			<bool name="Draggable">false</bool>
			<token name="Font">39</token>
			<Font name="FontFace">
				<Family><url>rbxasset://fonts/families/Roboto.json</url></Family>
				<Weight>400</Weight>
				<Style>Normal</Style>
				<CachedFaceId><url>rbxasset://fonts/Roboto-Regular.ttf</url></CachedFaceId>
			</Font>
			<int name="LayoutOrder">0</int>
			<float name="LineHeight">1</float>
			<int name="MaxVisibleGraphemes">-1</int>
			<bool name="Modal">false</bool>
			<string name="Name">TestingEmoji</string>
			<Ref name="NextSelectionDown">null</Ref>
			<Ref name="NextSelectionLeft">null</Ref>
			<Ref name="NextSelectionRight">null</Ref>
			<Ref name="NextSelectionUp">null</Ref>
			<UDim2 name="Position">
				<XS>0.546740115</XS>
				<XO>0</XO>
				<YS>0.0180362761</YS>
				<YO>0</YO>
			</UDim2>
			<bool name="RichText">false</bool>
			<Ref name="RootLocalizationTable">null</Ref>
			<float name="Rotation">0</float>
			<bool name="Selectable">true</bool>
			<bool name="Selected">false</bool>
			<token name="SelectionBehaviorDown">0</token>
			<token name="SelectionBehaviorLeft">0</token>
			<token name="SelectionBehaviorRight">0</token>
			<token name="SelectionBehaviorUp">0</token>
			<bool name="SelectionGroup">false</bool>
			<Ref name="SelectionImageObject">null</Ref>
			<int name="SelectionOrder">0</int>
			<UDim2 name="Size">
				<XS>0.0472948477</XS>
				<XO>0</XO>
				<YS>0.0790000036</YS>
				<YO>0</YO>
			</UDim2>
			<token name="SizeConstraint">0</token>
			<int64 name="SourceAssetId">-1</int64>
			<token name="Style">0</token>
			<BinaryString name="Tags"></BinaryString>
			<string name="Text">&#226;&#157;&#140;</string>
			<Color3 name="TextColor3">
				<R>0</R>
				<G>0</G>
				<B>0</B>
			</Color3>
			<bool name="TextScaled">true</bool>
			<float name="TextSize">14</float>
			<Color3 name="TextStrokeColor3">
				<R>0</R>
				<G>0</G>
				<B>0</B>
			</Color3>
			<float name="TextStrokeTransparency">1</float>
			<float name="TextTransparency">0</float>
			<token name="TextTruncate">0</token>
			<bool name="TextWrapped">true</bool>
			<token name="TextXAlignment">2</token>
			<token name="TextYAlignment">1</token>
			<bool name="Visible">true</bool>
			<int name="ZIndex">1</int>
		</Properties>
	</Item>
</roblox>

RenanMsV avatar Nov 10 '22 00:11 RenanMsV